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):