Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ task
Method
task
Lib/test/test_asyncio/test_tasks.py:521–522 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
519
loop = asyncio.new_event_loop()
520
521
async
def
task():
522
await asyncio.sleep(10)
523
524
try
:
525
t = self.new_task(loop, task())
Callers
nothing calls this directly
Calls
5
uncancel
Method · 0.80
assertTrue
Method · 0.80
sleep
Method · 0.45
cancel
Method · 0.45
stop
Method · 0.45
Tested by
no test coverage detected