MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __sleep0

Function __sleep0

tools/python-3.11.9-amd64/Lib/asyncio/tasks.py:626–634  ·  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

624
625@types.coroutine
626def __sleep0():
627 """Skip one event loop run cycle.
628
629 This is a private helper for 'asyncio.sleep()', used
630 when the 'delay' is set to 0. It uses a bare 'yield'
631 expression (which Task.__step knows how to handle)
632 instead of creating a Future object.
633 """
634 yield
635
636
637async def sleep(delay, result=None):

Callers 1

sleepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected