summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@suse.com>2017-05-16 14:36:21 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2017-05-16 14:36:21 +0100
commitfcd86883edf8c3a94c43240c3c0be3ecd4e7ea8f (patch)
tree34817d54658b1fd576e24c864df1a84b6d298fcc /lib
parent80aa02e7f97b345a7a3673e47a9993f2ddb31dc6 (diff)
downloadNim-fcd86883edf8c3a94c43240c3c0be3ecd4e7ea8f.tar.gz
Add waitFor on seq[Future], waitAll and more (#5189)
* Switch to unittest and speedup

* Make timers and callbacks fields public
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/asyncdispatch.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim
index 1697384e0..8c1cf6b18 100644
--- a/lib/pure/asyncdispatch.nim
+++ b/lib/pure/asyncdispatch.nim
@@ -163,8 +163,8 @@ include includes/asyncfutures
 
 type
   PDispatcherBase = ref object of RootRef
-    timers: HeapQueue[tuple[finishAt: float, fut: Future[void]]]
-    callbacks: Deque[proc ()]
+    timers*: HeapQueue[tuple[finishAt: float, fut: Future[void]]]
+    callbacks*: Deque[proc ()]
 
 proc processTimers(p: PDispatcherBase) {.inline.} =
   #Process just part if timers at a step