State

sealed class State

State of the rate limiter.

Inheritors

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.