A rate limiter that caps the number of concurrently running operations.
Declared in <folly/channels/MaxConcurrentRateLimiter.h>
class MaxConcurrentRateLimiter
: public RateLimiter
| Name | Description |
|---|---|
RateLimiter | A rate-limiter used by the channels framework to limit the number of in-flight requests. |
| 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. |
| Name | Description |
|---|---|
executeWhenReady [virtual] | Runs the function once a concurrency slot is available. |
shared_from_this | |
weak_from_this |
| Name | Description |
|---|---|
create | Creates a rate limiter allowing at most maxConcurrent operations at once. |
| Name |
|---|
operator= |
| Name | Description |
|---|---|
folly::channels::MaxConcurrentRateLimiter::Token |