Example:
auto future = asyncAllProcesses();
// Do other work while processes are being collected...
Process[] processes = future.get();
writeln("Found ", processes.length, " processes");ProcessFuture asyncAllProcesses()Gets all processes asynchronously.
This function spawns a separate thread to collect all process information, allowing the caller to continue working while the collection happens in the background.
Example:
auto future = asyncAllProcesses();
// Do other work while processes are being collected...
Process[] processes = future.get();
writeln("Found ", processes.length, " processes");