Concurrently await a range of awaitables and collect their results.

Synopsis

Declared in <folly/coro/Collect.h>

template<typename InputRange>
requires !std::is_void_v<
            semi_await_result_t<detail::range_reference_t<InputRange>>>
folly::coro::Task<std::vector</* implementation-defined */>>
collectAllRange(InputRange awaitables);

Return Value

A Task completing with a vector of the results in input order.

Parameters

Name

Description

awaitables

The range of awaitables to await.

Created with MrDocs