Available on crate feature
experimental-async only.Expand description
Python coroutine implementation, used notably when wrapping async fn
with #[pyfunction]/#[pymethods].
Re-exportsยง
use alloc::sync::Arc;๐use core::future::Future;๐use core::pin::Pin;๐use core::task::Context;๐use core::task::Poll;๐use core::task::Waker;๐use pyo3_macros::pyclass;๐use pyo3_macros::pymethods;๐use crate::panic::PanicException;๐panic=unwindandwip_feature_stduse crate::Bound;๐use crate::Py;๐use crate::PyAny;๐use crate::PyErr;๐use crate::PyResult;๐use crate::Python;๐use crate::coroutine::cancel::ThrowCallback;๐use crate::coroutine::waker::AsyncioWaker;๐use crate::exceptions::PyAttributeError;๐use crate::exceptions::PyRuntimeError;๐use crate::exceptions::PyStopIteration;๐use crate::types::PyIterator;๐use crate::types::PyString;๐use crate::types::string::PyStringMethods;๐pub use cancel::CancelHandle;use crate::platform::prelude::*;๐