Version-Specific Features
Python 3.14 — Asyncio call-graph introspection
New call-graph helpers describe relationships between tasks and awaited operations. The asyncio CLI can also inspect authorized running processes, subject to permissions and platform support. A snapshot is diagnostic evidence, not a guarantee of deadlock. Requires Python 3.14 or the relevant build; example is not executed locally.
Formal Syntax & Structure
python syntaxpython
asyncio.capture_call_graph()Return Value
Feature-specific
No single return type; see the example and feature description.
Working Example
Example Snippetpython
import asyncioasync def main(): graph = asyncio.capture_call_graph() print(graph is not None)asyncio.run(main())