Module pyo3_pytests::awaitable

source ·
Expand description

The following classes are examples of objects which implement Python’s awaitable protocol.

Both IterAwaitable and FutureAwaitable will return a value immediately when awaited, see guide examples related to pyo3-asyncio for ways to suspend tasks and await results.

Functions§