<viztask>.waitAll

Wait for all the specified conditions to occur

 

<viztask>.waitAll(
    conditions    

)

 

conditions

A list of Condition objects


Remarks

This command will create a Condition object that will wait for all the specified conditions to occur.

The yielded command returns a viz.Data object with the following information about the Condition:

Properties

data

A list containing the data returned by all the condition objects

Return Value

viztask.Condition object

Example

import viztask

def MyTask():
    
    while True:
        
        yield viztask.waitAll( [ viztask.waitKeyDown(' '), viztask.waitTime(2) ] )

        print 'Spacebar pressed and 2 seconds elapsed'

viztask.schedule( MyTask() )

See also

<viztask>.waitAny
<viztask>.waitTrue