Package-level declarations
Types
Link copied to clipboard
internal abstract class SemaphoreBasedRateLimiter(val config: RateLimiterConfig, val semaphoreState: SemaphoreState) : SuspendableSemaphore
A counting suspendable Semaphore based implementation of a rate limiter that uses a queue to store the excess requests that are waiting for permits to be available. This implementation behaviour is dependent on the configuration provided (e.g., total permits, queue length, etc.).