RateLimiter
constructor(config: RateLimiterConfig = defaultRateLimiterConfig(), semaphoreState: SemaphoreState = InMemorySemaphoreState())(source)
Parameters
config
The configuration for the rate limiter mechanism.
semaphoreState
The state of the semaphore. Defaults to an in-memory semaphore state.