TokenBucketRateLimiter
class TokenBucketRateLimiter(bucketSize: Int = 300, refillDuration: Duration = 1.minutes) : RateLimiter
A RateLimiter implementation that uses the token bucket algorithm.
Since
0.4.0
Parameters
bucketSize
the size of the bucket
refillDuration
the maximum time until the bucket is filled after being fully depleted