Stdlib: asyncdispatch: Add support of varargs to all.
This commit is contained in:
parent
67ae65064c
commit
33f0538566
1 changed files with 3 additions and 0 deletions
|
|
@ -377,6 +377,9 @@ proc all*[A](futs: seq[Future[A]]): Future[seq[A]] =
|
||||||
|
|
||||||
return retFuture
|
return retFuture
|
||||||
|
|
||||||
|
proc all*[A](futs: varargs[Future[A]]): Future[seq[A]] =
|
||||||
|
return all(@futs)
|
||||||
|
|
||||||
type
|
type
|
||||||
PDispatcherBase = ref object of RootRef
|
PDispatcherBase = ref object of RootRef
|
||||||
timers: HeapQueue[tuple[finishAt: float, fut: Future[void]]]
|
timers: HeapQueue[tuple[finishAt: float, fut: Future[void]]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue