We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf8755 commit fb30af7Copy full SHA for fb30af7
1 file changed
asyncgpio/gpio.py
@@ -1,7 +1,7 @@
1
from . import libgpiod as gpio
2
3
import sys
4
-import trio
+import anyio
5
import datetime
6
7
@@ -275,7 +275,7 @@ async def __anext__(self):
275
fd = gpio.lib.gpiod_line_event_get_fd(self._line)
276
if fd < 0:
277
raise OSError("line is closed")
278
- await trio.lowlevel.wait_readable(fd)
+ await anyio.wait_socket_readable(fd)
279
self._is_open()
280
r = gpio.lib.gpiod_line_event_read_fd(fd, ev)
281
if r != 0:
0 commit comments