def active_io(self, iocb):
    'Called by a handler to notify the controller that a request is\n        being processed.'
    if _debug:
        IOController._debug('active_io %r', iocb)
    if ((iocb.ioState != IDLE) and (iocb.ioState != PENDING)):
        raise RuntimeError(('invalid state transition (currently %d)' % (iocb.ioState,)))
    iocb.ioState = ACTIVE
Called by a handler to notify the controller that a request is
being processed.
def active_io(self, iocb):
    'Called by a handler to notify the controller that a request is\n        being processed.'
    if _debug:
        IOController._debug('active_io %r', iocb)
    if ((iocb.ioState != IDLE) and (iocb.ioState != PENDING)):
        raise RuntimeError(('invalid state transition (currently %d)' % (iocb.ioState,)))
    iocb.ioState = ACTIVE