fix results stuff
This commit is contained in:
parent
0bbd558ee7
commit
76a9d7bda2
|
@ -12,7 +12,7 @@ const
|
||||||
proc awaitThreadResult*[T](signal: ThreadSignalPtr, handle: Flowvar[T]): Future[?!T] {.async.} =
|
proc awaitThreadResult*[T](signal: ThreadSignalPtr, handle: Flowvar[T]): Future[?!T] {.async.} =
|
||||||
await wait(signal)
|
await wait(signal)
|
||||||
|
|
||||||
proc closeSig() =
|
template closeSig() =
|
||||||
let sigRes = signal.close()
|
let sigRes = signal.close()
|
||||||
if sigRes.isErr:
|
if sigRes.isErr:
|
||||||
return failure(sigRes.error())
|
return failure(sigRes.error())
|
||||||
|
|
Loading…
Reference in New Issue