rate {ratelimitr} | R Documentation |
Create a new rate
Description
Create a new rate
Usage
rate(n, period)
Arguments
n |
Number of allowed events within a period |
period |
Length (in seconds) of measurement period |
See Also
Examples
## a function
f <- function() NULL
## limit f to 10 calls per second
limited_f <- limit_rate(f, rate(n = 10, period = 1))
[Package ratelimitr version 0.4.1 Index]