tokenBucket
Configure a new standard token bucket instance.
Parameters
block
A DSL block which sets the parameters for the token bucket
fun <B : RetryTokenBucket.Config.Builder, T : RetryTokenBucket> tokenBucket(factory: DslFactory<B, T>, block: B.() -> Unit)
Configure a new token bucket instance.
Parameters
factory
The token bucket factory to use for building a new instance
block
A DSL block which sets the parameters for the token bucket
The token bucket instance. Utilizing an existing token bucket will share call capacity between scopes.