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§
- Default
Exit Handler - Default exit handler that calls
std::process::exit(code). - Test
Exit Handler - Test-friendly exit handler that records a flag instead of terminating.
Traits§
- Exit
Handler - Abstraction for process exit, allowing tests to observe exit requests without actually terminating the process.