Update nest-asyncio/README.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user