collectAnyWithoutExceptionRange overloads
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...
A Task with a pair of the winning index and its Try value.
| Name | Description |
|---|---|
| awaitables | The range of awaitables to await. |