A rate limiter that caps the number of concurrently running operations.

Synopsis

Declared in <folly/channels/MaxConcurrentRateLimiter.h>

class MaxConcurrentRateLimiter
    : public RateLimiter

Base Classes

Name

Description

RateLimiter

A rate‐limiter used by the channels framework to limit the number of in‐flight requests.

Types

Name

Description

Token

A token on destruction signals termination of the user provided function. So it's expected that a derived class override the destructor to provide the desired functionality. Or piggyback on destruction of the compiler generated overridden destructor.

Member Functions

Name

Description

executeWhenReady

executeWhenReady overloads

shared_from_this

weak_from_this

Static Member Functions

Name

Description

create

Creates a rate limiter allowing at most maxConcurrent operations at once.

Protected Member Functions

Name

operator=

Friends

Name

Description

folly::channels::MaxConcurrentRateLimiter::Token

Created with MrDocs