|
D.15.22.9 waitAllTasks
Procedure from library tasks.lib (see tasks_lib).
- Usage:
- waitAllTasks(t1, t2, ...), t1, t2, ... tasks
- Return:
- nothing. Waits for all the tasks t1, t2, ... to complete. The state
of the tasks is set to 'completed'.
- Note:
- A task whose state is neither 'started' nor 'completed' cannot be
waited for.
The result of any completed task can be accessed via getResult.
'waitAllTasks(t1, t2, ...);' is a shortcut for
'waitTasks(list(t1, t2, ...), size(list(t1, t2, ...)));'. Since
returning a list of the indices of the completed tasks does not make
sense in this case, nothing is returned.
Example:
See also:
getResult;
getState;
pollTask;
printTask;
startTasks;
waitTasks.
|