# task_list

Definition: | sequence list = task_list()
Description: | Get a sequence containing the task-ids for all active or suspended tasks.
pwa/p2js: | Not supported.
Comments: | This function lets you find out which tasks currently exist. Tasks that have terminated naturally, or have been killed are not included. You can pass a task id to task_status() to find out more about a particular task.
Example: |
    sequence tasks = task_list()
    for i=1 to length(tasks) do
        if task_status(tasks[i]) > 0 then
            printf(1, "task %d is active\n", tasks[i])
        end if
    end for
Implementation: | See builtins\VM\pTask.e (an autoinclude) for details of the actual implementation.
See Also: | task_status, task_create, task_schedule, task_yield, task_suspend