Module pyo3_asyncio::async_std
source · Expand description
async-std-runtime
PyO3 Asyncio functions specific to the async-std runtime
Items marked with
unstable-streams
are only available when the unstable-streams
Cargo feature is enabled:
[dependencies.pyo3-asyncio]
version = "0.20"
features = ["unstable-streams"]
Modules
attributes
re-exports for macros
Functions
- Convert a Rust Future into a Python awaitable
- Convert a Rust Future into a Python awaitable
- Either copy the task locals from the current task OR get the current running loop and contextvars from Python.
- Get the current event loop from either Python or Rust async task local context
- Convert a Python
awaitable
into a Rust Future unstable-streams
Convert an async generator into a streamunstable-streams
Convert an async generator into a streamunstable-streams
Convert an async generator into a streamunstable-streams
Convert an async generator into a stream- local_future_into_pyDeprecatedConvert a
!Send
Rust Future into a Python awaitable - local_future_into_py_with_localsDeprecatedConvert a
!Send
Rust Future into a Python awaitable - Run the event loop until the given Future completes
- Run the event loop until the given Future completes
- Set the task local event loop for the given future
- Set the task local event loop for the given !Send future
Attribute Macros
attributes
Provides the boilerplate for theasync-std
runtime and runs an async fn as main Enables an async main function that uses the async-std runtime.attributes
testing
Registers anasync-std
test with thepyo3-asyncio
test harness Registers anasync-std
test with thepyo3-asyncio
test harness.