Update nest-asyncio/README.md

This commit is contained in:
2024-11-25 14:03:59 -05:00
parent 1c77302cf6
commit 0d166b8ad0

View File

@@ -14,6 +14,9 @@ asyncio.run = loop.run_until_complete
async def hello(): async def hello():
async def world(): print('hello') async def world(): print('hello')
asyncio.run(world()) or print('world') asyncio.run(world()) or print('world')
asyncio.run(hello()) # OK asyncio.run(hello())
'' """
hello
world
"""
``` ```