From abc9c335a83b99cf1c9cc31512c73addc6e752dc Mon Sep 17 00:00:00 2001 From: Adi Roiban Date: Fri, 16 Sep 2022 03:08:35 +0100 Subject: [PATCH] Update trio example to work with latest trio --- examples/loop_trio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/loop_trio.py b/examples/loop_trio.py index 0567d130..8efe6cbf 100755 --- a/examples/loop_trio.py +++ b/examples/loop_trio.py @@ -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):