Module graceful

Expand description

Shutdown management for graceful shutdown of async-first applications.

Structs§

Shutdown
The Shutdown struct is the main entry point to the shutdown system.
ShutdownBuilder
ShutdownBuilder to build a Shutdown manager.
ShutdownGuard
A guard, linked to a Shutdown struct, prevents the Shutdown::shutdown future from completing.
WeakShutdownGuard
A weak guard, linked to a Shutdown struct, is similar to a ShutdownGuard but does not prevent the Shutdown::shutdown future from completing.

Functions§

default_signal
Returns a Future that completes once one of the default signals.