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

Function _enter_task

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

Source from the content-addressed store, hash-verified

951
952
953def _enter_task(loop, task):
954 current_task = _current_tasks.get(loop)
955 if current_task is not None:
956 raise RuntimeError(f"Cannot enter into task {task!r} while another "
957 f"task {current_task!r} is being executed.")
958 _current_tasks[loop] = task
959
960
961def _leave_task(loop, task):

Callers 1

__stepMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected