collectAllTryWindowed overloads

Synopses

Declared in <folly/coro/Collect.h>

Await a range of awaitables with bounded concurrency, collecting Try results.

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

Await an rvalue vector of awaitables with bounded concurrency, collecting Try results.

template<typename SemiAwaitable>
decltype(collectAllTryWindowed(
        detail::MoveRange(awaitables), maxConcurrency))
collectAllTryWindowed(
    std::vector<SemiAwaitable> awaitables,
    std::size_t maxConcurrency);

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.

maxConcurrency

The maximum number of awaitables awaited at once.

Created with MrDocs