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

Function current_task

tools/python-3.11.9-amd64/Lib/asyncio/tasks.py:35–39  ·  view source on GitHub ↗

Return a currently executed task.

(loop=None)

Source from the content-addressed store, hash-verified

33
34
35def current_task(loop=None):
36 """Return a currently executed task."""
37 if loop is None:
38 loop = events.get_running_loop()
39 return _current_tasks.get(loop)
40
41
42def all_tasks(loop=None):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected