Skip to content

Commit

Permalink
Update readme to use asyncio.run
Browse files Browse the repository at this point in the history
  • Loading branch information
maxzheng committed Sep 24, 2023
1 parent 3e2fff1 commit 561e705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Behold, the power of aiohttp_ client with `Requests <http://docs.python-requests
json = await response.json()
return response, text, json
r, text, json = asyncio.get_event_loop().run_until_complete(main())
r, text, json = asyncio.run(main())
>>> r
<ClientResponse(https://api.github.com/) [200 OK]>
Expand Down

0 comments on commit 561e705

Please sign in to comment.