async_retryable | R Documentation |
Make an asynchronous funcion retryable
async_retryable(task, times)
task |
An asynchronous function. |
times |
Number of tries. |
Asynchronous retryable function.
Other async control flow:
async_backoff()
,
async_reflect()
,
async_retry()
,
async_sequence()
,
async_try_each()
,
async_until()
,
async_whilst()
## Create a downloader that retries five times
http_get_5 <- async_retryable(http_get, times = 5)
ret <- synchronise(
http_get_5("https://eu.httpbin.org/get?q=1")$
then(function(x) rawToChar(x$content))
)
cat(ret)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.