asyncio.run() code example
Example 1: async sleep python
await asyncio.sleep(1)
Example 2: asyncio run
>>> import asyncio
>>> async def main():
... print('hello')
... await asyncio.sleep(1)
... print('world')
>>> asyncio.run(main())
hello
world