This command will create a Condition object that will wait until an asynchronous operation on the object is complete.
import viztask
def LoadTask():
yield viztask.waitKeyDown(' ')
model = viz.addChild('piazza.osgb', flags=viz.LOAD_ASYNC)
yield viztask.waitAsyncLoad(model)
print('Finished loading')
viztask.schedule( LoadTask() )