File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Actions Status] ( https://github.com/awestlake87/pyo3-asyncio/workflows/CI/badge.svg )] ( https://github.com/awestlake87/pyo3-asyncio/actions )
4
4
[ ![ codecov] ( https://codecov.io/gh/awestlake87/pyo3-asyncio/branch/master/graph/badge.svg )] ( https://codecov.io/gh/awestlake87/pyo3-asyncio )
5
- [ ![ crates.io] ( http ://meritbadge.herokuapp.com /pyo3-asyncio)] ( https://crates.io/crates/pyo3-asyncio )
5
+ [ ![ crates.io] ( https ://img.shields.io/crates/v /pyo3-asyncio)] ( https://crates.io/crates/pyo3-asyncio )
6
6
[ ![ minimum rustc 1.46] ( https://img.shields.io/badge/rustc-1.46+-blue.svg )] ( https://rust-lang.github.io/rfcs/2495-min-rust-version.html )
7
7
8
8
[ Rust] ( http://www.rust-lang.org/ ) bindings for [ Python] ( https://www.python.org/ ) 's [ Asyncio Library] ( https://docs.python.org/3/library/asyncio.html ) . This crate facilitates interactions between Rust Futures and Python Coroutines and manages the lifecycle of their corresponding event loops.
Original file line number Diff line number Diff line change @@ -263,13 +263,13 @@ fn asyncio_get_event_loop(py: Python) -> PyResult<&PyAny> {
263
263
264
264
/// Get a reference to the Python Event Loop from Rust
265
265
///
266
- /// Equivalent to `asyncio.get_running_loop()` in Python 3.7+
266
+ /// Equivalent to `asyncio.get_running_loop()` in Python 3.7+.
267
267
/// > For Python 3.6, this function falls back to `asyncio.get_event_loop()` which has slightly
268
268
/// different behaviour. See the [`asyncio.get_event_loop`](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop)
269
269
/// docs to better understand the differences.
270
270
pub fn get_running_loop ( py : Python ) -> PyResult < & PyAny > {
271
- // Ideally should call get_running_loop, but calls get_event_loop for compatibility between
272
- // versions .
271
+ // Ideally should call get_running_loop, but calls get_event_loop for compatibility when
272
+ // get_running_loop is not available .
273
273
GET_RUNNING_LOOP
274
274
. get_or_try_init ( || -> PyResult < PyObject > {
275
275
let asyncio = asyncio ( py) ?;
You can’t perform that action at this time.
0 commit comments