WaitComplete¶
-
virtual void ICommandSequence::WaitComplete(double timeout) = 0¶
Waits until the execution of the command sequence is finished, i.e. when the command sequence is in either
ECommandState::Completed
orECommandState::Failed
, or until the timeout interval is exceeded.- Parameters
timeout – Interval in seconds to wait for complete callback. Negative value means infinite.
- Throws
COutOfResourcesException
– No resources available to wait for states.CAbortedException
– Wait was aborted due to external influences, see logging for details.CTimeoutException
– Timeout interval exceeded while waiting for complete callback.CCommunicationErrorException
– Protocol error.CConnectionLostException
– Connection to controller lost.CRebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CObjectDestroyedException
– Object is destroyed.
- Remarks
If execution is already finished, this method returns immediately.