R/rbmi.R
par_lapply.Rd
Simple wrapper around `lapply` and [`parallel::clusterApplyLB`] to abstract away the logic of deciding which one to use
par_lapply(cl, fun, x, ...)
Cluster created by [`parallel::makeCluster()`] or `NULL`
Function to be run
object to be looped over
extra arguments passed to `fun`