Crate shutdown_hooks

Source
Expand description

Provides access to shutdown hooks

Currently, only adding new hooks is supported.

An unspecified future release will have a collection of hooks and have the ability to remove them

Functionsยง

add_shutdown_hook
Adds a callback function to be called on exit