ParallelTry[f, {arg1, arg2, ...}]
evaluates in parallel, returning the first result received.

ParallelTry[f, {arg1, arg2, ...}, k]
returns a list of the first k results.

Details and OptionsDetails and Options

  • ParallelTry automatically distributes computations among different available kernels and processors.
  • Any evaluations still underway after k results have been received are aborted.
  • If the result from evaluating one of the is $Failed, then it is ignored.
  • If no results other than $Failed are obtained, ParallelTry returns $Failed.
  • ParallelTry[f, {arg1, arg2, ...}] allocates evaluations of the to different kernels and processors, starting with .
  • If there are more than kernels, then some of the will not be tried unless earlier ones return $Failed.
  • ParallelTry takes the same DistributedContexts option as ParallelTable.
New in 7 | Last modified in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »