MCPcopy Index your code
hub / github.com/python/cpython / sleeper

Method sleeper

Lib/test/test_asyncio/test_tasks.py:1317–1319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1315 a = self.new_task(loop, asyncio.sleep(0.1))
1316
1317 async def sleeper():
1318 await asyncio.sleep(0.15)
1319 raise ZeroDivisionError('really')
1320
1321 b = self.new_task(loop, sleeper())
1322

Callers

nothing calls this directly

Calls 3

advance_timeMethod · 0.80
sleepMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected