Package-level declarations

Types

Link copied to clipboard
interface RateLimiter

Interface for rate limiters implementations. A rate limiter is a component that allows to limit the rate of some actions

Link copied to clipboard
class RateLimiterBuilder(maxRate: Long)

A builder for RateLimiter instances.

Functions

Link copied to clipboard
fun rateLimiter(maxRate: Long, init: RateLimiterBuilder.() -> Unit = {}): RateLimiter

Creates a RateLimiter instance with the specified maxRate.