Stdlib: asyncdispatch: Add support of varargs to all.

This commit is contained in:
Konstantin Molchanov
2016-05-31 10:21:21 +04:00
parent 67ae65064c
commit 33f0538566

View File

@@ -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]]]