Checks whether or not the provided count of the limited resource is currently available or if it has been used up.
The amount of the limited resource to request.
True when the provided count is available, false otherwise.
StaticcustomCreates a rate limiter with a custom interval.
The maximum available per the given interval.
The interval in ms.
The amount of initial tokens to fill. Defaults to the value of max.
The RateLimiter.
StaticperCreates a rate limiter with the provided maximum available per day.
The maximum available per day.
The amount of initial tokens to fill. Defaults to the value of max.
The RateLimiter.
StaticperCreates a rate limiter with the provided maximum available per hour.
The maximum available per hour.
The amount of initial tokens to fill. Defaults to the value of max.
The RateLimiter.
StaticperCreates a rate limiter with the provided maximum available per minute.
The maximum available per minute.
The amount of initial tokens to fill. Defaults to the value of max.
The RateLimiter.
StaticperCreates a rate limiter with the provided maximum available per second.
The maximum available per seconds.
The amount of initial tokens to fill. Defaults to the value of max.
The RateLimiter.
A rate limiter that provides an "isAvailable" method which ensures that no more than the provided maximum can be used.