Function pyo3::coroutine::waker::release_waiter

source ·
fn release_waiter(future: &Bound<'_, PyAny>) -> PyResult<()>
Available on crate feature experimental-async only.
Expand description

Call future.set_result if the future is not done.

Future can be cancelled by the event loop before being waken. See https://github.com/python/cpython/blob/main/Lib/asyncio/tasks.py#L452C5-L452C5

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here