diff --git a/codex/utils/asyncthreads.nim b/codex/utils/asyncthreads.nim index 68f9bad5..19a19adc 100644 --- a/codex/utils/asyncthreads.nim +++ b/codex/utils/asyncthreads.nim @@ -12,7 +12,7 @@ const proc awaitThreadResult*[T](signal: ThreadSignalPtr, handle: Flowvar[T]): Future[?!T] {.async.} = await wait(signal) - proc closeSig() = + template closeSig() = let sigRes = signal.close() if sigRes.isErr: return failure(sigRes.error())