LinearRateLimiter

fun LinearRateLimiter(limitersSettings: Map<UUID, Pair<Long, Duration>>, purgeHitSize: Int = DEFAULT_PURGE_HIT_SIZE, purgeHitDuration: Duration = DEFAULT_PURGE_HIT_DURATION, nowProvider: () -> Instant = { Instant.now() }, initialSize: Int = DEFAULT_INITIAL_CACHE_SIZE)

Sources

Link copied to clipboard