powered by
Parallel sapply with Supervision
pool_sapply(X, FUN, ..., simplify = TRUE, pool = NULL)
Simplified result if possible, otherwise a list.
List or vector to iterate over.
Function to apply.
Additional arguments to FUN.
Logical. Simplify result to vector/matrix?
A shard_pool object. If NULL, uses current pool.
shard_pool
# \donttest{ pool_create(2) result <- pool_sapply(1:4, function(x) x^2, pool = pool_get()) pool_stop() # }
Run the code above in your browser using DataLab