pub async fn wait_for_signals(
signals: Signals,
grace_period_secs: u8,
cancel_recv: Arc<Mutex<Option<Receiver<()>>>>,
)
Available on (Unix or Windows) and Unix only.
Expand description
It waits for a specific type of incoming signals included ctrl+c
.