Function pyo3_asyncio::get_running_loop[][src]

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

Get a reference to the Python Event Loop from Rust

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

For Python 3.6, this function falls back to asyncio.get_event_loop() which has slightly different behaviour. See the asyncio.get_event_loop docs to better understand the differences.