An object that waits until it is called.
This example demonstrates how a tasklet waits for a callback:
import gobject
from kiwi import tasklet
mainloop = gobject.MainLoop()
def my_task():
callback = tasklet.WaitForCall()
gobject.timeout_add(1000, callback)
yield callback
mainloop.quit()
tasklet.run(my_task())
mainloop.run()
| Function | __init__ | Creates a wait condition that is actually a callable object, and waits
for a call to be made on it.
|
| Function | arm | Overrides WaitCondition.arm
|
| Function | disarm | Overrides WaitCondition.disarm
|
| Function | __call__ | Undocumented |