object RateLimiter
- Companion
- class
class Object
trait Matchable
class Any
Value members
Concrete methods
Creates a RateLimiter as Managed resource
Creates a RateLimiter as Managed resource
Note that the maximum number of calls is spread out over the interval, i.e. 10 calls per second
means that 1 call can be made every 100 ms. Up to max
calls can be saved up. The maximum
is immediately available when starting the RateLimiter
- Value Params
- interval
Interval duration
- max
Maximum number of calls in each interval
- Returns
RateLimiter