showMethods("bpvec")
## ten tasks (1:10), called with as many back-end elements are specified
## by BPPARAM. Compare with bplapply
system.time(result <- bpvec(1:10, function(v) {
message("working") ## 10 tasks
sqrt(v)
}))
result
Run the code above in your browser using DataCamp Workspace