stdlib: asyncdispatch: all: Docs updated.
This commit is contained in:
parent
83af9888f5
commit
3538e00fc7
1 changed files with 7 additions and 4 deletions
|
|
@ -356,11 +356,14 @@ proc `or`*[T, Y](fut1: Future[T], fut2: Future[Y]): Future[void] =
|
||||||
return retFuture
|
return retFuture
|
||||||
|
|
||||||
proc all*[T](futs: varargs[Future[T]]): auto =
|
proc all*[T](futs: varargs[Future[T]]): auto =
|
||||||
## Returns a future which will complete once all futures in ``futs``
|
## Returns a future which will complete once
|
||||||
## complete.
|
## all futures in ``futs`` complete.
|
||||||
##
|
##
|
||||||
## The resulting future will hold the values of all awaited futures,
|
## If the awaited futures are not ``Future[void]``, the returned future
|
||||||
## in the order they are passed.
|
## will hold the values of all awaited futures in a sequence.
|
||||||
|
##
|
||||||
|
## If the awaited futures *are* ``Future[void]``,
|
||||||
|
## this proc returns ``Future[void]``.
|
||||||
|
|
||||||
when T is void:
|
when T is void:
|
||||||
var
|
var
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue