We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ec43e commit 68d1973Copy full SHA for 68d1973
guide/src/ecosystem/async-await.md
@@ -120,7 +120,7 @@ Export an async function that makes use of `async-std`:
120
use pyo3::{prelude::*, wrap_pyfunction};
121
122
#[pyfunction]
123
-fn rust_sleep(py: Python<'_>) -> PyResult<&Bound<'_, PyAny>>> {
+fn rust_sleep(py: Python<'_>) -> PyResult<&Bound<'_, PyAny>> {
124
pyo3_asyncio::async_std::future_into_py(py, async {
125
async_std::task::sleep(std::time::Duration::from_secs(1)).await;
126
Ok(Python::with_gil(|py| py.None()))
0 commit comments