collectAnyNoDiscardRange overloads
Declared in <folly/coro/Collect.h>
Await a range of awaitables and return every result once one finishes.
template<typename InputRange>
folly::coro::Task<std::vector</* implementation-defined */>>
collectAnyNoDiscardRange(InputRange awaitables);
» more...
Await an rvalue vector of awaitables and return every result once one finishes.
template<typename SemiAwaitable>
decltype(collectAnyNoDiscardRange(detail::MoveRange(awaitables)))
collectAnyNoDiscardRange(std::vector<SemiAwaitable> awaitables);
» more...
A Task with a vector of Try results for all awaitables.
| Name | Description |
|---|---|
| awaitables | The range of awaitables to await. |