Skip to content

Commit

Permalink
Update trio example to work with latest trio
Browse files Browse the repository at this point in the history
  • Loading branch information
adiroiban authored Sep 16, 2022
1 parent 9782ab8 commit abc9c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/loop_trio.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ def __init__(self, client):

async def read_loop(self):
while True:
await trio.hazmat.wait_readable(self.sock)
await trio.lowlevel.wait_readable(self.sock)
self.client.loop_read()

async def write_loop(self):
while True:
await self._event_large_write.wait()
await trio.hazmat.wait_writable(self.sock)
await trio.lowlevel.wait_writable(self.sock)
self.client.loop_write()

async def misc_loop(self):
Expand Down

0 comments on commit abc9c33

Please sign in to comment.