WaitState

virtual void IStateMachine::WaitState(const std::vector<T> &states, double timeout) = 0

Waits until the state of the state machine changes to one of the specified states, or the timeout interval is exceeded.

Parameters
  • states – States to wait for.

  • timeout – Interval in seconds to wait for the specified states. Negative value means infinite.

Throws
Remarks

If the state already matches one of the specified states, this method returns immediately. Execution requires one subscription resource per specified state.