def set_timeout(self, delay, err=TimeoutError):
    'Called to set a transaction timer.'
    if _debug:
        IOCB._debug('set_timeout(%d) %r err=%r', self.ioID, delay, err)
    if self.ioTimeout:
        self.ioTimeout.suspend_task()
    else:
        self.ioTimeout = FunctionTask(self.abort, err)
    self.ioTimeout.install_task((_time() + delay))
Called to set a transaction timer.
def set_timeout(self, delay, err=TimeoutError):
    
    if _debug:
        IOCB._debug('set_timeout(%d) %r err=%r', self.ioID, delay, err)
    if self.ioTimeout:
        self.ioTimeout.suspend_task()
    else:
        self.ioTimeout = FunctionTask(self.abort, err)
    self.ioTimeout.install_task((_time() + delay))