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 cell is populated by the background exit watcher when the child exits on its own, or by UnixProcess::cleanup when the test tears down. Consumers (for example, the adp_exits_with assertion in panoramic) read the cell after the exit token fires.

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 */ }