# Class k.t.WaitForIO(WaitCondition):

Part of kiwi.tasklet View In Hierarchy

An object that waits for IO conditions on sockets or file descriptors.

Method | __init__ | Create a new WaitForIO object.
Method | arm | Overrides WaitCondition.arm
Method | disarm | Overrides WaitCondition.disarm
Method | _io_cb | Undocumented

def __init__(self, filedes, condition=gobject.IO_IN, priority=gobject.PRIORITY_DEFAULT):
overrides kiwi.tasklet.WaitCondition.__init__
Create a new WaitForIO object.

Parameters | filedes | object to monitor for IO (type: int file descriptor, or a gobject.IOChannel, or an object with a `fileno()` method, such as socket or unix file. )
| condition | IO event mask (type: a set of `gobject.IO_*` flags ORed together )
| priority | mainloop source priority

def arm(self, tasklet):
overrides kiwi.tasklet.WaitCondition.arm
Overrides WaitCondition.arm

def disarm(self):
overrides kiwi.tasklet.WaitCondition.disarm
Overrides WaitCondition.disarm

def _io_cb(self, unused_filedes, condition):
Undocumented