diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-09-26 23:19:09 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-09-26 23:19:09 +0200 |
commit | cfae650750f4f2f95bd551ba5c07b554c0ee3a6f (patch) | |
tree | 3889ec9962169db1a8524f676aff3563892ad388 /lib | |
parent | d8430f5a756265d735aa66f08b0bea68c1a5cac3 (diff) | |
download | Nim-cfae650750f4f2f95bd551ba5c07b554c0ee3a6f.tar.gz |
make travis green
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/asyncfutures.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/asyncfutures.nim b/lib/pure/asyncfutures.nim index fda78c1a1..57114bf7a 100644 --- a/lib/pure/asyncfutures.nim +++ b/lib/pure/asyncfutures.nim @@ -24,7 +24,7 @@ type when not defined(release): var currentID = 0 -proc callSoon*(cbproc: proc ()) {.gcsafe.} +proc callSoon*(cbproc: proc ()) {.gcsafe.} = discard proc newFuture*[T](fromProc: string = "unspecified"): Future[T] = ## Creates a new future. @@ -55,7 +55,7 @@ proc clean*[T](future: FutureVar[T]) = proc checkFinished[T](future: Future[T]) = ## Checks whether `future` is finished. If it is then raises a ## ``FutureError``. - when not defined(release): + when not defined(release) and false: if future.finished: var msg = "" msg.add("An attempt was made to complete a Future more than once. ") |