code: def until_state(self, state, timeout=None):
          
          return self._state.until_state(state, timeout=timeout)
docs: Future that resolves when a certain client state is attained
  
          Parameters
          ----------
  
          state : str
              Desired state, one of ("disconnected", "syncing", "synced")
          timeout: float
              Timeout for operation in seconds.