Skip to main content

Module waker

Module waker 

Source
Available on crate feature experimental-async only.

Re-exportsยง

use crate::sync::PyOnceLock; ๐Ÿ”’
use crate::types::PyCFunction; ๐Ÿ”’
use crate::types::any::PyAnyMethods; ๐Ÿ”’
use crate::Bound; ๐Ÿ”’
use crate::Py; ๐Ÿ”’
use crate::PyAny; ๐Ÿ”’
use crate::PyResult; ๐Ÿ”’
use crate::Python; ๐Ÿ”’
use crate::intern; ๐Ÿ”’
use crate::wrap_pyfunction; ๐Ÿ”’
use alloc::sync::Arc; ๐Ÿ”’
use alloc::task::Wake; ๐Ÿ”’
use pyo3_macros::pyfunction; ๐Ÿ”’

Modulesยง

release_waiter ๐Ÿ”’๐Ÿ‘ป

Structsยง

AsyncioWaker
Lazy asyncio.Future wrapper, implementing Wake by calling Future.set_result.
LoopAndFuture ๐Ÿ”’

Functionsยง

__pyfunction_release_waiter ๐Ÿ”’ โš 
release_waiter ๐Ÿ”’
Call future.set_result if the future is not done.
โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here