WaitComplete¶
-
void ICommandSequence.WaitComplete(double timeout)¶
Waits until the execution of the command sequence is finished, i.e. when the command sequence is in either
CommandState.CompletedorCommandState.Failed, or until the timeout interval is exceeded.- Parameters
timeout – Interval in seconds to wait for complete callback. Negative value means infinite.
- Throws
OutOfResourcesException– No resources available to wait for states.AbortedException– Wait was aborted due to external influences, see logging for details.TimeoutException– Timeout interval exceeded while waiting for complete callback.CommunicationErrorException– Protocol error.ConnectionLostException– Connection to controller lost.RebootedException– Controller has been rebooted since this object reference was retrieved, invalidating this reference.System.ObjectDisposedException– Object is disposed.
- Remarks
If execution is already finished, this method returns immediately.