def abort(self, err):
    'Abort all pending requests.'
    if _debug:
        IOQController._debug('abort %r', err)
    if (self.state == CTRL_IDLE):
        if _debug:
            IOQController._debug('    - idle')
        return
    while True:
        iocb = self.ioQueue.get()
        if (not iocb):
            break
        if _debug:
            IOQController._debug('    - iocb: %r', iocb)
        iocb.ioState = ABORTED
        iocb.ioError = err
        iocb.trigger()
    if (self.state != CTRL_IDLE):
        if _debug:
            IOQController._debug('    - busy after aborts')
Abort all pending requests.
def abort(self, err):
    
    if _debug:
        IOQController._debug('abort %r', err)
    if (self.state == CTRL_IDLE):
        if _debug:
            IOQController._debug('    - idle')
        return
    while True:
        iocb = self.ioQueue.get()
        if (not iocb):
            break
        if _debug:
            IOQController._debug('    - iocb: %r', iocb)
        iocb.ioState = ABORTED
        iocb.ioError = err
        iocb.trigger()
    if (self.state != CTRL_IDLE):
        if _debug:
            IOQController._debug('    - busy after aborts')