Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

asyncio run

>>> import asyncio

>>> async def main():
...     print('hello')
...     await asyncio.sleep(1)
...     print('world')

>>> asyncio.run(main())
hello
world
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #asyncio #run
ADD COMMENT
Topic
Name
2+4 =