Function terminate

Source
pub async fn terminate()
Expand description

Waits for various termination signals from the operating system.

On unix systems, this waits for either SIGINT or SIGTERM, while on other systems it will only wait for SIGINT.