Skip to content

Commit 66bdec5

Browse files
committed
asyncio.run() was added in 3.7
- this lib targets >= 3.6
1 parent 6bcc37b commit 66bdec5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,8 @@ async def main():
169169

170170
# don't forget to close the channel when done!
171171
channel.close()
172-
173-
174-
asyncio.run(main())
172+
loop = asyncio.get_event_loop()
173+
loop.run_until_complete(main())
175174

176175
```
177176

0 commit comments

Comments
 (0)