(info) This AI is still in early stages of development.

Process.destroy()

Deactivates and destroys (deletes) either a specific process or all processes.

 

Syntax

Process.destroy(); // destroy all processes!
Process.destroy(processName); // destroy process with specific name

Parameters

ParameterTypeMandatoryNotesProcess Version
processNameString(error)

If specified, the process of that name will be deactivated then deleted.

If omitted, all processes will be deactivated then deleted.

0.1

Return Values

ValueTypeNotesProcess Version
undefinedUndefinedNothing is returned0.1

Examples

Process("process1"); // make process #1
Process("process2"); // #2
Process("process3"); // #3
Process.destroy("process1"); // #1 destroyed, #2 and #3 remain
Process.destroy(); // #2 and #3 destroyed

Availability

Requires:

Â