powered by
Create a new rate
rate(n, period)
Number of allowed events within a period
Length (in seconds) of measurement period
limit_rate
# NOT RUN { ## a function f <- function() NULL ## limit f to 10 calls per second limited_f <- limit_rate(f, rate(n = 10, period = 1)) # }
Run the code above in your browser using DataLab