set_async_handler

Function set_async_handler 

Source
pub async fn set_async_handler<F>(user_handler: F) -> JoinHandle<()>
where F: Future<Output = ()> + 'static + Send,
👎Deprecated since 3.6.4: Use ‘async’ feature instead. The ‘tokio’ feature is deprecated and will be removed in the future.
Expand description

Register signal handler in tokio runtime for Ctrl-C.