mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-18 11:04:53 +00:00
Add waitFor on seq[Future], waitAll and more (#5189)
* Switch to unittest and speedup * Make timers and callbacks fields public
This commit is contained in:
committed by
Dominik Picheta
parent
80aa02e7f9
commit
fcd86883ed
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user