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.