Wait for the request to be dispatched.

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