pub fn register_signal_cleanup( callback: Pin<Box<dyn Future<Output = ()> + Send>>, ) -> u64
Register a cleanup callback to be executed on SIGINT/SIGTERM Returns a unique ID that can be used to unregister the callback