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

Function __sleep0

Lib/asyncio/tasks.py:676–684  ·  view source on GitHub ↗

Skip one event loop run cycle. This is a private helper for 'asyncio.sleep()', used when the 'delay' is set to 0. It uses a bare 'yield' expression (which Task.__step knows how to handle) instead of creating a Future object.

()

Source from the content-addressed store, hash-verified

674
675@types.coroutine
676def __sleep0():
677 """Skip one event loop run cycle.
678
679 This is a private helper for 'asyncio.sleep()', used
680 when the 'delay' is set to 0. It uses a bare 'yield'
681 expression (which Task.__step knows how to handle)
682 instead of creating a Future object.
683 """
684 yield
685
686
687async def sleep(delay, result=None):

Callers 1

sleepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…