Skip to main content

ShutdownHook

Type Alias ShutdownHook 

Source
pub type ShutdownHook = Box<dyn Fn() -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>;
Expand description

A callback that runs during shutdown. The boxed future must be Send.

Aliased Type§

pub struct ShutdownHook(/* private fields */);