WaitState

virtual void ITopController::WaitState(ETopControllerState state, double timeout) = 0

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

Parameters
  • state – State to wait for.

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

Throws
Remarks

If the state already matches the specified state, this method returns immediately. Execution does not requires a subscription resource.