mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 14:03:23 +00:00
Stdlib: asyncdispatch: Add support of varargs to all.
This commit is contained in:
@@ -377,6 +377,9 @@ proc all*[A](futs: seq[Future[A]]): Future[seq[A]] =
|
||||
|
||||
return retFuture
|
||||
|
||||
proc all*[A](futs: varargs[Future[A]]): Future[seq[A]] =
|
||||
return all(@futs)
|
||||
|
||||
type
|
||||
PDispatcherBase = ref object of RootRef
|
||||
timers: HeapQueue[tuple[finishAt: float, fut: Future[void]]]
|
||||
|
||||
Reference in New Issue
Block a user