code: def wait(self, *args, **kwargs):
          
          if _debug: IOCB._debug("wait(%d) %r %r", self.ioID, args, kwargs)
  
          # waiting from a non-daemon thread could be trouble
          return self.ioComplete.wait(*args, **kwargs)
docs: Wait for the completion event to be set.