Vizard 8 » Command Index » Vizard modules » viztask » <viztask:Task>.kill
8.0

<viztask:Task>.kill

Kill the task

<viztask:Task>.kill()  

Remarks

This command will kill the task. The task will not be updated anymore and will be removed from the scheduler.

Return Value

None

Example

import viztask

def MyTask():

    while True:

        yield viztask.waitTime(1)

        print('1 second elapsed')

= viztask.schedule( MyTask() )

vizact.onkeydown('k',t.kill)