makeUnorderedTryAsyncGenerator overloads

Synopses

Declared in <folly/coro/Collect.h>

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

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

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

template<typename SemiAwaitable>
decltype(makeUnorderedTryAsyncGenerator(
        scope, detail::MoveRange(awaitables)))
makeUnorderedTryAsyncGenerator(
    AsyncScope& scope,
    std::vector<SemiAwaitable> awaitables);

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

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

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

template<typename SemiAwaitable>
decltype(makeUnorderedTryAsyncGenerator(
        scope, detail::MoveRange(awaitables)))
makeUnorderedTryAsyncGenerator(
    CancellableAsyncScope& scope,
    std::vector<SemiAwaitable> awaitables);

Return Value

An AsyncGenerator yielding each Try 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