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);

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);

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

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

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);

Return Value

An AsyncGenerator yielding each result as it completes.

Parameters

Name

Description

scope

The AsyncScope the awaitables are attached to.

awaitables

The range of awaitables to run.

Created with MrDocs