shutdown_runtime

Function shutdown_runtime 

Source
pub fn shutdown_runtime(wait: Duration)
Expand description

Provides a best-effort flush for runtime tasks during shutdown.

The function yields once to the Tokio scheduler and gives outstanding tasks a chance to observe shutdown signals before Python finalizes the interpreter, which calls this via an atexit hook.