powered by
Apply an asynchronous function to each element of a vector
async_map(.x, .f, ..., .args = list(), .limit = Inf)
A list or atomic vector.
Asynchronous function to apply.
Additional arguments to .f.
.f
More additional arguments to .f.
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
async_detect
async_every
async_filter
# NOT RUN { synchronise(async_map( seq(10, 100, by = 10) / 100, function(wait) delay(wait)$then(function() "OK") )) # }
Run the code above in your browser using DataLab