Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rate_sleep

Wait for a given time


Description

If the rate's internal counter exceeds the maximum number of times it is allowed to sleep, rate_sleep() throws an error of class purrr_error_rate_excess.

Usage

rate_sleep(rate, quiet = TRUE)

rate_reset(rate)

Arguments

rate

A rate object determining the waiting time.

quiet

If FALSE, prints a message displaying how long until the next request.

Details

Call rate_reset() to reset the internal rate counter to 0.

See Also


purrr

Functional Programming Tools

v0.3.4
GPL-3 | file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.