register_signal_cleanup

Function register_signal_cleanup 

Source
pub fn register_signal_cleanup(
    callback: Pin<Box<dyn Future<Output = ()> + Send>>,
) -> u64
Expand description

Register a cleanup callback to be executed on SIGINT/SIGTERM Returns a unique ID that can be used to unregister the callback