Wait for the specified task to end
| <viztask>.waitTask( | |
| gen |
)
gen
A generator object to run as a task
This command will create a Condition object that will wait for the specified task to finish. This command is usually unnecessary because you can yield a task by itself. This is useful when you want to wait for a task using the viztask.waitAny/waitAll conditions.
viztask.Condition object