Wait for a specified event to occur
| <viztask>.waitEvent( | |
| event | |
| all = False |
)
event
The event to wait for
all = False
If True, the data object will receive a list of all the events that occured while the Condition object was waiting for an event.
If False, the data object will receive a single tuple representing the last event that occured while the Condition object was waiting for an event.
This command will create a Condition object that will wait for the specified event to occur.
The yielded command returns a viz.Data object with the following information about the Condition:
Properties |
|
data |
A tuple containing the event data, if all is False. |
viztask.Condition object
Example 1:
Example 2: