State

sealed class State

State of the rate limiter.

Types

Link copied to clipboard
class Available(val remainingTokens: Int, val limit: Int, val refillAtTimeMillis: Long) : RateLimiter.State

Rate limiter has enough tokens.

Link copied to clipboard
class Exhausted(val toWait: Duration) : RateLimiter.State

Rate limiter is exhausted.

Inheritors

Link copied to clipboard
Link copied to clipboard