def abort(self, err):
    'abort all of the control blocks in the queue.'
    if _debug:
        IOQueue._debug('abort %r', err)
    try:
        for iocb in self.queue:
            iocb.ioQueue = None
            iocb.abort(err)
        self.queue = []
        self.notempty.clear()
    except ValueError:
        pass
abort all of the control blocks in the queue.
def abort(self, err):
    
    if _debug:
        IOQueue._debug('abort %r', err)
    try:
        for iocb in self.queue:
            iocb.ioQueue = None
            iocb.abort(err)
        self.queue = []
        self.notempty.clear()
    except ValueError:
        pass