processIter

fnProcessRange processIter(string[] attrs = null, bool preload = false) @safe

Creates a process iterator.

This function returns a range for iterating over all processes.

Parameters

attrsArray of attribute names to preload (not currently used).
preloadIf true, preload process information (not currently used).

Returns

ProcessRange for iterating over processes.

Example:

foreach (proc; processIter()) {
  writeln("PID: ", proc.pid());
}