Skip to main content

ExitCodeCell

Type Alias ExitCodeCell 

Source
pub type ExitCodeCell = Arc<OnceLock<Option<i32>>>;
Expand description

Shared cell that receives the exit code of a spawned UnixProcess.

The exit watcher sets the cell before cancelling the exit token; read it after that token fires. If UnixProcess::cleanup aborts the watcher first, the cell stays empty and the token stays uncancelled.

The inner Option<i32> is None if the process was terminated by signal rather than exiting normally with a status code.

Aliased Typeยง

pub struct ExitCodeCell { /* private fields */ }