Skip to content

Commit

Permalink
Remove deprecated uvloop method usage (#1781)
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry <20801433+Arexils@users.noreply.github.com>
  • Loading branch information
Arexils authored Dec 9, 2023
1 parent 304f586 commit 907c983
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,12 @@ This replaces the default `asyncio` event loop with one that uses `libuv` intern
and then amend your script to be something similar to the following example to utilise it in your application:

```py
import asyncio
import os

if os.name != "nt":
import uvloop
uvloop.install()
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())


# Your code goes here
Expand Down

0 comments on commit 907c983

Please sign in to comment.