On this page
  1. asyncio.FutureCallGraph
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from asyncio import FutureCallGraph
help(FutureCallGraph)

Linked from

Related notes