async_sequence | R Documentation |
This is equivalent to using the $then()
method of a deferred, but
it is easier to use programmatically.
async_sequence(..., .list = NULL)
... |
Asynchronous functions to compose. |
.list |
Mose asynchronous functions to compose. |
Asynchronous function, the composition of all input functions.
They are performed left to right, the ones in .list
are the last
ones.
Other async control flow:
async_backoff()
,
async_reflect()
,
async_retry()
,
async_retryable()
,
async_try_each()
,
async_until()
,
async_whilst()
check_url <- async_sequence(
http_head, function(x) identical(x$status_code, 200L))
synchronise(check_url("https://eu.httpbin.org/status/404"))
synchronise(check_url("https://eu.httpbin.org/status/200"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.