folly::coro::makeUnorderedAsyncGenerator

makeUnorderedAsyncGenerator overloads

Synopses

Declared in <folly/coro/Collect.h>

Yield the results of a range of awaitables in order of completion.

template<typename InputRange>
AsyncGenerator</* implementation-defined */&&>
makeUnorderedAsyncGenerator(
    AsyncScope& scope,
    InputRange awaitables);
» more...

Yield the results of a vector of awaitables in order of completion.

template<typename SemiAwaitable>
decltype(makeUnorderedAsyncGenerator(
        scope, detail::MoveRange(awaitables)))
makeUnorderedAsyncGenerator(
    AsyncScope& scope,
    std::vector<SemiAwaitable> awaitables);
» more...

Yield the results of a range of awaitables in order of completion.

template<typename InputRange>
AsyncGenerator</* implementation-defined */&&>
makeUnorderedAsyncGenerator(
    CancellableAsyncScope& scope,
    InputRange awaitables);
» more...

Yield the results of a vector of awaitables in order of completion.

template<typename SemiAwaitable>
decltype(makeUnorderedAsyncGenerator(
        scope, detail::MoveRange(awaitables)))
makeUnorderedAsyncGenerator(
    CancellableAsyncScope& scope,
    std::vector<SemiAwaitable> awaitables);
» more...

Return Value

An AsyncGenerator yielding each result as it completes.

Parameters

NameDescription
scopeThe AsyncScope the awaitables are attached to.
awaitablesThe range of awaitables to run.