Update nest-asyncio/README.md
This commit is contained in:
@@ -10,9 +10,11 @@ def _run_once(loop):
|
|||||||
loop.__class__._run_once = _run_once
|
loop.__class__._run_once = _run_once
|
||||||
asyncio.run = loop.run_until_complete
|
asyncio.run = loop.run_until_complete
|
||||||
|
|
||||||
|
|
||||||
async def hello():
|
async def hello():
|
||||||
async def world(): print('hello')
|
print('hello')
|
||||||
asyncio.run(world()) or print('world')
|
async def world(): print('world')
|
||||||
|
asyncio.run(world())
|
||||||
asyncio.run(hello())
|
asyncio.run(hello())
|
||||||
"""
|
"""
|
||||||
hello
|
hello
|
||||||
|
|||||||
Reference in New Issue
Block a user