MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _leave_task

Function _leave_task

tools/python-3.11.9-amd64/Lib/asyncio/tasks.py:961–966  ·  view source on GitHub ↗
(loop, task)

Source from the content-addressed store, hash-verified

959
960
961def _leave_task(loop, task):
962 current_task = _current_tasks.get(loop)
963 if current_task is not task:
964 raise RuntimeError(f"Leaving task {task!r} does not match "
965 f"the current task {current_task!r}.")
966 del _current_tasks[loop]
967
968
969def _unregister_task(task):

Callers 1

__stepMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected