TokenBucketRateLimiter

constructor(bucketSize: Int = 300, refillDuration: Duration = 1.minutes)

Parameters

bucketSize

the size of the bucket

refillDuration

the maximum time until the bucket is filled after being fully depleted