View source: R/StartRetryWaiter.R
StartRetryWaiter | R Documentation |
Creates a waiter function that can be used in a loop while trying some task many times. The waiter sleeps while waiting to try again, with sleep times determined by exponential back-off.
StartRetryWaiter(timeout = NULL, delay = 0.1, maxdelay = 1)
timeout |
integer. How long (in seconds) to keep trying before timing out (NULL means no timeout) |
delay |
integer. Initial delay between tries (in seconds). |
maxdelay |
integer. Maximum delay (in seconds) between tries. |
function which gets the waiter status. This function returns a list with these items:
index numeric. How many times we have waited.
secondsWaited numeric. How long (in seconds) since we started the timer.
stillTrying logical. Whether we should keep trying or give up (logical)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.