fix results stuff

This commit is contained in:
Jaremy Creechley 2024-05-17 01:39:11 +03:00
parent 76a9d7bda2
commit 784383aec4
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ proc awaitThreadResult*[T](signal: ThreadSignalPtr, handle: Flowvar[T]): Future[
template closeSig() = template closeSig() =
let sigRes = signal.close() let sigRes = signal.close()
if sigRes.isErr: if sigRes.isErr:
return failure(sigRes.error()) raise (ref Defect)(msg: sigRes.error())
var var
res: T res: T