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