Function get_running_loop

Source
pub fn get_running_loop(py: Python<'_>) -> PyResult<Bound<'_, PyAny>>
Expand description

Get a reference to the Python Event Loop from Rust

Equivalent to asyncio.get_running_loop() in Python 3.7+.