Skip to main content

shutdown

Function shutdown 

Source
pub(crate) async fn shutdown()
Expand description

Resolve on the first stop signal.

SIGTERM matters as much as SIGINT here: it is what every container orchestrator sends, so without this arm a rolling restart kills the process mid-block and the exporters waiting on that block see a reset.

Two #[cfg] bodies and not one with a cfg! in it: cfg! compiles both, so the arm for the platform this is not built for is a line no test on this platform can ever reach.