asyncio.FutureCallGraph
Prev: asyncio.future_discard_from_awaited_by | Up: asyncio | Next: asyncio.gather
Rel: asyncio.AbstractEventLoop, asyncio.AbstractServer, asyncio.all_tasks, asyncio.as_completed
Ref: docs.python.org — asyncio.FutureCallGraph
Tags: #public #python3 #stdlib #asyncio
Import
import asyncio
from asyncio import FutureCallGraph
Signature & Overview
asyncio.FutureCallGraph(future: _asyncio.Future, call_stack: tuple['FrameCallGraphEntry', ...], awaited_by: tuple['FutureCallGraph', ...]) -> None
FutureCallGraph(future: _asyncio.Future, call_stack: tuple['FrameCallGraphEntry', ...], awaited_by: tuple['FutureCallGraph', ...])
Usage
import asyncio
# Python 3.14+ snapshot of awaited futures and coroutine frames
assert hasattr(asyncio, "capture_call_graph")
Gotchas
- Requires Python 3.14+: Useful for diagnosing deadlocked or stuck async tasks.
REPL Inspect
from asyncio import FutureCallGraph
help(FutureCallGraph)
Linked from
Related notes
- 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/gather 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