task_kill Statement

The task_kill statement is used to stop a task - dead.

Once a task have been killed it cannot continue from the point at which it was killed. It can only be restarted.

A task can kill itself. A task that kills itself will stop execution immediately. A task may kill itself when it has completed its function. A killed task may be restarted by INTSERV.

task_suspend and task_resume have no effect on a killed task.

NOTE tasks cannot be killed from within INTSERV unless they are currently suspended

syntax

task_kill N

where N is the task number

see note on task numbers