Home Online Manual
Top
Back: getResult
Forward: derham_lib
FastBack: resources_lib
FastForward: derham_lib
Up: tasks_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.15.20.14 getState

Procedure from library tasks.lib (see tasks_lib).

Usage:
getState(t), t task

Return:
a string, the state of t.

Example:
 
LIB "tasks.lib";
ring R = 0, (x,y), dp;
ideal I = x9y2+x10, x2y7-y8;
task t = "std", list(I);
getState(t);
==> created
startTasks(t);
getState(t);
==> started
waitAllTasks(t);
getState(t);
==> completed
killTask(t);
getState(t);
==> uninitialized
See also: createTask; getArguments; getCommand; getResult; killTask; pollTask; printTask; startTasks; stopTask; waitTasks.