folly::channels::MaxConcurrentRateLimiter::executeWhenReady

Runs the function once a concurrency slot is available.

Synopsis

Declared in <folly/channels/MaxConcurrentRateLimiter.h>

virtual
void
executeWhenReady(
    folly::Function<void(std::unique_ptr<Token>)> func,
    Executor::KeepAlive<SequencedExecutor> executor) override;

Parameters

NameDescription
funcThe function to run, receiving a token that releases the slot.
executorThe executor on which the function runs.