WaitState

void IStateMachine.WaitState(System.Collections.IEnumerable<T> states, double timeout)

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.