async_map | R Documentation |
Apply an asynchronous function to each element of a vector
async_map(.x, .f, ..., .args = list(), .limit = Inf)
.x |
A list or atomic vector. |
.f |
Asynchronous function to apply. |
... |
Additional arguments to |
.args |
More additional arguments to |
.limit |
Number of elements to process simulateneously. |
Deferred value that is resolved after all deferred values
from the application of .f
are resolved.
Other async iterators:
async_detect()
,
async_every()
,
async_filter()
synchronise(async_map(
seq(10, 100, by = 10) / 100,
function(wait) delay(wait)$then(function() "OK")
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.