pyo3::impl_::coroutine

Function new_coroutine

Source
pub fn new_coroutine<'py, F, T, E>(
    name: &Bound<'py, PyString>,
    qualname_prefix: Option<&'static str>,
    throw_callback: Option<ThrowCallback>,
    future: F,
) -> Coroutine
where F: Future<Output = Result<T, E>> + Send + 'static, T: IntoPyObject<'py>, E: Into<PyErr>,
Available on crate feature experimental-async only.
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here