Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ asyncfn
Method
asyncfn
Lib/test/test_asyncio/test_taskgroups.py:1046–1048 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1044
name = None
1045
1046
async
def
asyncfn():
1047
nonlocal name
1048
name = asyncio.current_task().get_name()
1049
1050
async
with
asyncio.TaskGroup()
as
tg:
1051
tg.create_task(asyncfn(), name=
"example name"
)
Callers
nothing calls this directly
Calls
1
get_name
Method · 0.45
Tested by
no test coverage detected