Skip to main content

PROCESS

Constant PROCESS 

Source
pub const PROCESS: ModuleSchema;
Expand description

process: the run’s own arguments, its end, and subprocesses.

exit and run are irreversible writes: a process that has ended cannot be brought back, and a subprocess that has run has already done whatever it does. Neither is cancellable for the same reason.

exit is the one shipped operation that is not recordable. Recordability means the result can be handed back later without calling the host again, and exit has no result worth handing back — a replay that returned Unit in its place would continue running a program that had ended.

run is deliberately not a spawn: it starts the subprocess, waits for it, and answers with what it wrote to standard output.