pub async fn ctrl_c()
Returns a future that completes when Ctrl+C is received.
This is a thin wrapper around tokio::signal::ctrl_c() that panics on error.
tokio::signal::ctrl_c()
send_message_on(handle.clone(), rt::ctrl_c(), Msg::Shutdown);