parallelApply(L,f)
toList apply(L,f)
, with the result computed in parallel in chunks using all cores. If it is the string "raw", then this behaves like apply(apply(L, e -> schedule(f, e)), taskResult)
. If the option Strategy is given the string "raw", then a separate task is created for each element of L. L is not split into chunks, allowableThreads is used unchanged, and the result has the same class as L. Normally the default strategy (Strategy => null
) is more efficient.
See parallel programming with threads and tasks for more information and an important warning about thread safety.
The object parallelApply is a method function with options.