def abort(self, err):
    'Called by a client to abort a transaction.'
    if _debug:
        IOCB._debug('abort(%d) %r', self.ioID, err)
    if self.ioController:
        self.ioController.abort_io(self, err)
    elif (self.ioState < COMPLETED):
        self.ioState = ABORTED
        self.ioError = err
        self.trigger()
Called by a client to abort a transaction.
def abort(self, err):
    
    if _debug:
        IOCB._debug('abort(%d) %r', self.ioID, err)
    if self.ioController:
        self.ioController.abort_io(self, err)
    elif (self.ioState < COMPLETED):
        self.ioState = ABORTED
        self.ioError = err
        self.trigger()