Function pyo3::impl_::coroutine::new_coroutine

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