default

fun default(limit: Int, refillPeriod: Duration, initialSize: Int = limit, clock: () -> Long = ::getTimeMillis): RateLimiter

An implementation of RateLimiter that starts with initialSize tokens, and will be refreshed to limit tokens every refillPeriod