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

asyncio.format_call_graph

Prev: asyncio.EventLoop | Up: asyncio | Next: asyncio.FrameCallGraphEntry
Rel: asyncio.AbstractEventLoop, asyncio.AbstractServer, asyncio.all_tasks, asyncio.as_completed
Ref: docs.python.org — asyncio.format_call_graph
Tags: #public #python3 #stdlib #asyncio


Import

import asyncio
from asyncio import format_call_graph

Signature & Overview

asyncio.format_call_graph(future: _asyncio.Future | None = None, /, *, depth: int = 1, limit: int | None = None) -> str

Return the async call graph as a string for future.

Usage

import asyncio

async def main():
    text = asyncio.format_call_graph()
    assert isinstance(text, str)

asyncio.run(main())

Gotchas

REPL Inspect

from asyncio import format_call_graph
help(format_call_graph)

Linked from

Related notes