PyDocs

Nav

Networking and Interprocess Communication

sleep

asyncio

async function (source) not WASI
  • sleep(delay, result=None)
Coroutine that completes after a given time (in seconds).
Changed in 3.10, 3.13
  • 3.10: Removed the loop parameter.
  • 3.13: Raises ValueError if delay is nan.
1 Example
$ python -m asyncio
asyncio REPL ...
Use "await" directly instead of "asyncio.run()".
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio
>>> await asyncio.sleep(10, result='hello')
'hello'
from the Python docs
See Also
No see-alsos for asyncio/sleep
0 Notes
No notes for sleep