collectAllTryRange overloads
Synopses
Declared in <folly/coro/Collect.h>
Concurrently await a range of awaitables and collect a vector of Try results.
template<typename InputRange>
folly::coro::Task<std::vector</* implementation-defined */>>
collectAllTryRange(InputRange awaitables);
Await an rvalue vector of awaitables, collecting a vector of Try results.
template<typename SemiAwaitable>
decltype(collectAllTryRange(detail::MoveRange(awaitables)))
collectAllTryRange(std::vector<SemiAwaitable> awaitables);
Return Value
A Task completing with a vector of Try<T> results in input order.
Parameters
Name |
Description |
awaitables |
The range of awaitables to await. |
Created with MrDocs