code: def wait(self):
          
          self.wait_event = threading.Event()
          timeout = int(self.timeout) if self.timeout else None
          self.timed_out = not self.wait_event.wait(timeout)
docs: Wait for the request to be dispatched.