work around windows - no without
This commit is contained in:
parent
9dcf56b5f5
commit
b2b8a0ce84
|
@ -48,9 +48,10 @@ proc send*[T](queue: SignalQueuePtr[T], msg: T): ?!void {.raises: [].} =
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
return failure(exc.msg)
|
return failure(exc.msg)
|
||||||
|
|
||||||
without wasSent =? queue[].signal.fireSync(InfiniteDuration).mapFailure, err:
|
let res = queue[].signal.fireSync(InfiniteDuration).mapFailure()
|
||||||
return failure(err)
|
if res.isErr:
|
||||||
if wasSent:
|
return failure(res.error())
|
||||||
|
if res.get():
|
||||||
return ok()
|
return ok()
|
||||||
else:
|
else:
|
||||||
return failure("ThreadSignalPtr not signalled in time")
|
return failure("ThreadSignalPtr not signalled in time")
|
||||||
|
|
Loading…
Reference in New Issue