MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / set_current_task_debug_info

Function set_current_task_debug_info

mitmproxy/utils/asyncio_utils.py:53–61  ·  view source on GitHub ↗

Set debug info for the current task.

(
    *,
    name: str,
    client: tuple | None = None,
)

Source from the content-addressed store, hash-verified

51
52
53def set_current_task_debug_info(
54 *,
55 name: str,
56 client: tuple | None = None,
57) -> None:
58 """Set debug info for the current task."""
59 task = asyncio.current_task()
60 assert task
61 set_task_debug_info(task, name=name, client=client)
62
63
64def task_repr(task: asyncio.Task) -> str:

Callers

nothing calls this directly

Calls 1

set_task_debug_infoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…