code: def _wait_and_except_if_failed(self, event, timeout=None):
          
          event.wait(timeout or self.__sync_timeout)
          self._except_if_failed(event)
docs: Combines waiting for event and call to `_except_if_failed`. If timeout is not specified the configured
          sync_timeout is used.