Concurrently await awaitables and return every result once one finishes.

Synopsis

Declared in <folly/coro/Collect.h>

template<typename... SemiAwaitables>
folly::coro::Task<std::tuple</* implementation-defined */...>>
collectAnyNoDiscard(SemiAwaitables&&... awaitables);

Return Value

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

Parameters

Name

Description

awaitables

The awaitables to await.

Created with MrDocs