Implements `asyncdispatch.getIoHandler` and assert on nil futures.
This commit is contained in:
parent
e5a27c96fb
commit
325e4520ec
3 changed files with 12 additions and 0 deletions
|
|
@ -281,6 +281,7 @@ proc asyncCheck*[T](future: Future[T]) =
|
|||
## finished with an error.
|
||||
##
|
||||
## This should be used instead of ``discard`` to discard void futures.
|
||||
assert(not future.isNil, "Future is nil")
|
||||
future.callback =
|
||||
proc () =
|
||||
if future.failed:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue