Skip to content

Commit 16afc06

Browse files
committed
uasyncio: Switch to memory-efficient poll.ipoll() method.
As added in MicroPython 1.9.
1 parent 21d60a8 commit 16afc06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uasyncio/uasyncio/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def wait(self, delay):
5555
if DEBUG and __debug__:
5656
log.debug("poll.wait(%d)", delay)
5757
# We need one-shot behavior (second arg of 1 to .poll())
58-
res = self.poller.poll(delay, 1)
58+
res = self.poller.ipoll(delay, 1)
5959
#log.debug("poll result: %s", res)
6060
# Remove "if res" workaround after
6161
# https://github.com/micropython/micropython/issues/2716 fixed.

0 commit comments

Comments
 (0)