# task_self

Definition: | integer current_task = task_self()
Description: | Return the task id of the current task.
pwa/p2js: | Not supported.
Comments: | This value may be needed if a task wants to schedule or suspend itself.
Example: |
    -- schedule self
    task_schedule(task_self(), {5.9, 6.0})
Implementation: | See builtins\VM\pTask.e (an autoinclude) for details of the actual implementation.
See Also: | task_create, task_schedule, task_yield, task_suspend