diff options
author | Michał Zieliński <michal@zielinscy.org.pl> | 2017-06-05 00:12:44 +0200 |
---|---|---|
committer | Michał Zieliński <michal@zielinscy.org.pl> | 2017-07-05 12:54:09 +0200 |
commit | e86863e8f55d862b7690fbe6a9cca87ebf425913 (patch) | |
tree | 1ed662c7ee46738c4736d839837424fa075ec6cd /tests/async | |
parent | 9e12db445959ce7c791ec7480ea08e9e02f96bba (diff) | |
download | Nim-e86863e8f55d862b7690fbe6a9cca87ebf425913.tar.gz |
asyncdispatch: split asyncfutures into its own module
This slightly changes behaviour of callSoon - before loop is initialized, callSoon will call the function immediately.
Diffstat (limited to 'tests/async')
-rw-r--r-- | tests/async/tasyncrecursion.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/async/tasyncrecursion.nim b/tests/async/tasyncrecursion.nim index 54482edab..1aeebe9b4 100644 --- a/tests/async/tasyncrecursion.nim +++ b/tests/async/tasyncrecursion.nim @@ -17,5 +17,6 @@ proc asyncRecursionTest*(): Future[int] {.async.} = inc(i) when isMainModule: + setGlobalDispatcher(newDispatcher()) var i = waitFor asyncRecursionTest() echo i |