Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

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

 

Syntax

Code Block
themeRDark
languagejavascript
linenumberstrue
ProcessesProcess.destroy(); // destroy all processes!
ProcessesProcess.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

Code Block
themeRDark
languagejavascript
linenumberstrue
ProcessesProcess("process1"); // make process #1
ProcessesProcess("process2"); // #2
ProcessesProcess("process3"); // #3
ProcessesProcess.destroy("process1"); // #1 destroyed, #2 and #3 remain
ProcessesProcess.destroy(); // #2 and #3 destroyed
Div
classbox

Availability

Requires: