Bundling Delayed objects builds a single Delayed object out of an arbitrary number of input Delayed objects.

bundle_delayed(delayed_list)

bundle_args(...)

Arguments

delayed_list

A list of Delayed objects to bundle into a single Delayed object

...

Ignore (this is a convenience function)

Examples

ident_fun <- function(x) { Sys.sleep(0.01) x } delayed_ident <- delayed_fun(ident_fun) d_list <- lapply(1:10, delayed_ident) d_bundle <- bundle_delayed(d_list) d_bundle$compute(progress = FALSE)
#> [[1]] #> [1] 1 #> #> [[2]] #> [1] 2 #> #> [[3]] #> [1] 3 #> #> [[4]] #> [1] 4 #> #> [[5]] #> [1] 5 #> #> [[6]] #> [1] 6 #> #> [[7]] #> [1] 7 #> #> [[8]] #> [1] 8 #> #> [[9]] #> [1] 9 #> #> [[10]] #> [1] 10 #>