Yield the results of a range of awaitables in order of completion.
Synopsis
Declared in <folly/coro/Collect.h>
template<typename InputRange>
AsyncGenerator</* implementation-defined */&&>
makeUnorderedAsyncGenerator(
CancellableAsyncScope& scope,
InputRange awaitables);
Return Value
An AsyncGenerator yielding each result as it completes.
Parameters
Name |
Description |
scope |
The CancellableAsyncScope the awaitables are attached to. |
awaitables |
The range of awaitables to run. |
Created with MrDocs