Skip to main content

Module exit_handler

Module exit_handler 

Source
Expand description

Exit handler abstraction for testable process termination.

The default implementation calls std::process::exit(1) as a last resort when orphaned tasks exceed the configured threshold. Tests can swap in a stub that records the exit request instead of terminating the process.

Structs§

DefaultExitHandler
Default exit handler that calls std::process::exit(code).
TestExitHandler
Test-friendly exit handler that records a flag instead of terminating.

Traits§

ExitHandler
Abstraction for process exit, allowing tests to observe exit requests without actually terminating the process.