folly::coro::collectAnyNoDiscardRange

Await a range of awaitables and return every result once one finishes.

Synopsis

Declared in <folly/coro/Collect.h>

template<typename InputRange>
folly::coro::Task<std::vector</* implementation-defined */>>
collectAnyNoDiscardRange(InputRange awaitables);

Return Value

A Task with a vector of Try results for all awaitables.

Parameters

NameDescription
awaitablesThe range of awaitables to await.