InfiniteTokenBucket

A RetryTokenBucket that doesn't actually track tokens, effectively simulating "infinite" token capacity. All operations immediately succeed and no blocking occurs.

Properties

Link copied to clipboard
open override val config: RetryTokenBucket.Config

Functions

Link copied to clipboard
open suspend override fun acquireToken(): RetryToken

Acquire a token from the token bucket. This method should be called before the initial retry attempt for a block of code. This method may delay if there are already insufficient tokens in the bucket due to prior retry failures or large numbers of simultaneous requests.