make asyncfutures.complete compile

This commit is contained in:
Erik Johansson Andersson
2017-07-18 18:10:01 +02:00
parent f127a7f7aa
commit 24fd86f8ee

View File

@@ -165,8 +165,7 @@ proc complete*[T](future: FutureVar[T], val: T) =
assert(fut.error.isNil())
fut.finished = true
fut.value = val
if not fut.cb.isNil():
fut.cb()
fut.callbacks.call()
proc fail*[T](future: Future[T], error: ref Exception) =
## Completes ``future`` with ``error``.