Implements `asyncdispatch.getIoHandler` and assert on nil futures.

This commit is contained in:
Dominik Picheta 2017-11-24 16:30:56 +00:00
commit 325e4520ec
3 changed files with 12 additions and 0 deletions

View file

@ -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: