code: def when_available(self, key: Hashable, **when_kwargs) -> StateWatcher:
          
          return self.when(lambda snapshot: key in snapshot, **when_kwargs)
docs: Block until ``key in state``, and then return a copy of the state.
  
          .. include:: /api/state/get_when_equality.rst