MCPcopy 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

uncancelMethod · 0.80
assertTrueMethod · 0.80
sleepMethod · 0.45
cancelMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected