<viztask>.waitTime

Wait for a specified amount of time

 

<viztask>.waitTime(
    seconds    

)

 

seconds

Number of seconds to wait for


Remarks

This command will create a Condition object that will wait for the specified number of seconds to elapse.

Return Value

viztask.Condition object

Example

import viztask

def MyTask():
    
    while True:
        
        yield viztask.waitTime(1)
        
        print '1 second has passed'

viztask.schedule( MyTask() )