def remove(self, iocb):
    'Remove a control block from the queue, called if the request\n        is canceled/aborted.'
    if _debug:
        IOQueue._debug('remove %r', iocb)
    for (i, item) in enumerate(self.queue):
        if (iocb is item[1]):
            if _debug:
                IOQueue._debug('    - found at %d', i)
            del self.queue[i]
            qlen = len(self.queue)
            if (not qlen):
                self.notempty.clear()
            break
    else:
        if _debug:
            IOQueue._debug('    - not found')
Remove a control block from the queue, called if the request
is canceled/aborted.
def remove(self, iocb):
    'Remove a control block from the queue, called if the request\n        is canceled/aborted.'
    if _debug:
        IOQueue._debug('remove %r', iocb)
    for (i, item) in enumerate(self.queue):
        if (iocb is item[1]):
            if _debug:
                IOQueue._debug('    - found at %d', i)
            del self.queue[i]
            qlen = len(self.queue)
            if (not qlen):
                self.notempty.clear()
            break
    else:
        if _debug:
            IOQueue._debug('    - not found')