Previous Topic: RemoteTarget.result MethodNext Topic: AutoShell Loadable Modules' Command Reference


RemoteTarget.wasAborted Method

This method checks if remote script execution is aborted programmatically an abort() call.

This method has the following syntax:

wasAborted()

The method returns the following values:

true

Indicates that the execution has been aborted.

false

Indicates that the execution has not been aborted.

Example

Check if a remote operation is aborted:

rt = new RemoteTarget("ascli1");
run-remote Math.sin(3/2*Math.PI) on rt
if(!rt.hasCompleted())
{
    rt.abort()
    ? "Operation aborted:", rt.wasAborted()
}

See also:

RemoteTarget.abort Method