Skip to main content

new_coroutine

Function new_coroutine 

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