rate_sleep: Wait for a given time

Description Usage Arguments Details See Also

View source: R/rate.R

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

1
2
3
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

rate_backoff(), insistently()


purrr documentation built on April 19, 2020, 4:17 p.m.