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 |
A rate‐limiter used by the channels framework to limit the number of in‐flight requests. |
Types
Name |
Description |
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 |
|
|
Static Member Functions
Name |
Description |
Creates a rate limiter allowing at most maxConcurrent operations at once. |
Protected Member Functions
Name |
Friends
Name |
Description |
|
Created with MrDocs