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

Synopsis

Declared in <folly/coro/Collect.h>

template<typename SemiAwaitable>
decltype(makeUnorderedTryAsyncGenerator(
        scope, detail::MoveRange(awaitables)))
makeUnorderedTryAsyncGenerator(
    AsyncScope& 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 vector of awaitables to run.

Created with MrDocs