WLJS LogoWLJS Notebook

WaitAll

WaitAll[expr] waits for all concurrent evaluations represented by EvaluationObject expressions in expr to finish, then returns the resulting expression obtained.

Examples

Wait for parallel tasks:

tasks = Table[ParallelSubmit[Prime[n^2]], {n, 5}];
WaitAll[tasks]

With SessionSubmit:

jobs = Table[SessionSubmit[Pause[1]; i], {i, 3}];
WaitAll[jobs]

Please visit the official Wolfram Language Reference for more details.

On this page