ConsumptionData

data class ConsumptionData(didConsume: Boolean, remaining: Long, resetTime: Instant)

Properties

Link copied to clipboard
val didConsume: Boolean

Whether a token was consumed

Link copied to clipboard
val remaining: Long

Count of tokens remaining in the bucket

Link copied to clipboard
val resetTime: Instant

The time at which the bucket will be reset.