Update nest-asyncio/README.md

This commit is contained in:
2024-11-25 14:06:53 -05:00
parent 9971ea924f
commit e524c7dab3

View File

@@ -10,9 +10,11 @@ def _run_once(loop):
loop.__class__._run_once = _run_once
asyncio.run = loop.run_until_complete
async def hello():
async def world(): print('hello')
asyncio.run(world()) or print('world')
print('hello')
async def world(): print('world')
asyncio.run(world())
asyncio.run(hello())
"""
hello