Await a range of value‐less awaitables with bounded concurrency.
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<void>
collectAllWindowed(
InputRange awaitables,
std::size_t maxConcurrency);
Return Value
A Task that completes when every awaitable has finished.
Parameters
Name |
Description |
awaitables |
The range of awaitables to await. |
maxConcurrency |
The maximum number of awaitables awaited at once. |
Created with MrDocs