asCompleted

Return a generator whose values, when waited for, are Future instances in the order they complete.

Raises $(D_PSYMBOL TimeoutException) if the timeout occurs before all futures are done.

asCompleted
(,,
Duration timeout = Duration.zero
)

Examples

foreach (f; getEventLoop.asCompleted(fs)) // use f.result

Note: The futures $(D_PSYMBOL f) are not necessarily members of $(D_PSYMBOL fs).

Meta