Top
Back: waitTasks
Forward: pollTask
FastBack: resources_lib
FastForward: schubert_lib
Up: tasks_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

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.


Top Back: waitTasks Forward: pollTask FastBack: resources_lib FastForward: schubert_lib Up: tasks_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-7, Aug 2013, generated by texi2html.