def trigger(self):
    'Set the event and make the callback.'
    if _debug:
        IOCB._debug('trigger(%d)', self.ioID)
    if self.ioQueue:
        if _debug:
            IOCB._debug('    - dequeue')
        self.ioQueue.remove(self)
    if self.ioTimeout:
        if _debug:
            IOCB._debug('    - cancel timeout')
        self.ioTimeout.suspend_task()
    self.ioComplete.set()
    for (fn, args, kwargs) in self.ioCallback:
        if _debug:
            IOCB._debug('    - callback fn: %r %r %r', fn, args, kwargs)
        fn(self, *args, **kwargs)
Set the event and make the callback.
def trigger(self):
    
    if _debug:
        IOCB._debug('trigger(%d)', self.ioID)
    if self.ioQueue:
        if _debug:
            IOCB._debug('    - dequeue')
        self.ioQueue.remove(self)
    if self.ioTimeout:
        if _debug:
            IOCB._debug('    - cancel timeout')
        self.ioTimeout.suspend_task()
    self.ioComplete.set()
    for (fn, args, kwargs) in self.ioCallback:
        if _debug:
            IOCB._debug('    - callback fn: %r %r %r', fn, args, kwargs)
        fn(self, *args, **kwargs)