# task_suspend

Definition: | task_suspend(integer task_id)
Description: | Suspend execution of the specified task.
pwa/p2js: | Not supported.
Comments: | This causes the specified task to be suspended. It will not be executed again unless there is a subsequent call to task_schedule() for it. task_id is a value returned from task_create(). Any task can suspend any other task. If a task suspends itself, the suspension will start as soon as the task calls task_yield().
Example: |
    -- suspend current task
    task_suspend(task_self())
    task_yield()
Implementation: | See builtins\VM\pTask.e (an autoinclude) for details of the actual implementation.
See Also: | task_create, task_schedule, task_self, task_yield