On this page
asyncio.future_add_to_awaited_by
Prev: asyncio.Future | Up: asyncio | Next: asyncio.future_discard_from_awaited_by
Rel: asyncio.AbstractEventLoop, asyncio.AbstractServer, asyncio.all_tasks, asyncio.as_completed
Ref: docs.python.org — asyncio.future_add_to_awaited_by
Tags: #public #python3 #stdlib #asyncio
Import
import asyncio
from asyncio import future_add_to_awaited_by
Signature & Overview
asyncio.future_add_to_awaited_by(fut, waiter, /)
Record that fut is awaited on by waiter.
Usage
import asyncio
# Python 3.14+ low-level helper for custom awaitable graph tracking
assert hasattr(asyncio, "future_add_to_awaited_by")
Gotchas
- Requires Python 3.14+: Mainly used by custom concurrency primitives so
capture_call_graph()can trace waiter relationships.
REPL Inspect
from asyncio import future_add_to_awaited_by
help(future_add_to_awaited_by)
Linked from
Related notes
- tuts/python3/stdlib_module/asyncio/Future Linked here; links to this page; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/future_discard_from_awaited_by Linked here; links to this page; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/asyncio/AbstractEventLoop Linked here; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/AbstractServer Linked here; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/all_tasks Linked here; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/as_completed Linked here; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/Barrier shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/BaseEventLoop shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/BaseProtocol shared tags: #asyncio, #stdlib