fix results stuff
This commit is contained in:
parent
76a9d7bda2
commit
784383aec4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue