Previous Topic: RemoteTarget.RemoteTarget ConstructorNext Topic: RemoteTarget.createRemoteContext Method


RemoteTarget.abort Method

Remote script execution by default is performed asynchronously. If an outstanding operation must be aborted, call abort() on the RemoteTarget object associated with the remote operation.

This method has the following syntax:

abort()

This method does not return a value.

Example

Abort a remote operation:

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

See also:

RemoteTarget.wasAborted Method

run-remote Command--Execute a Script on Remote Systems (Funclet)