TokenBucket

constructor(totalPermits: Int, replenishmentPeriod: Duration, queueLength: Int)(source)

Parameters

replenishmentPeriod

The time period that the rate limiter will use to refill the bucket with 1 more token.