folly::coro::collectAnyWithoutExceptionRange

collectAnyWithoutExceptionRange overloads

Synopses

Declared in <folly/coro/Collect.h>

Await a range of awaitables, returning the first success or last error.

template<typename InputRange>
folly::coro::Task<std::pair<size_t, folly::Try</* implementation-defined */>>>
collectAnyWithoutExceptionRange(InputRange awaitables);
» more...

Await an rvalue vector of awaitables, returning the first success or last error.

template<typename SemiAwaitable>
decltype(collectAnyWithoutExceptionRange(
        detail::MoveRange(awaitables)))
collectAnyWithoutExceptionRange(std::vector<SemiAwaitable> awaitables);
» more...

Return Value

A Task with a pair of the winning index and its Try value.

Parameters

NameDescription
awaitablesThe range of awaitables to await.