uasyncio: Switch to memory-efficient poll.ipoll() method.

As added in MicroPython 1.9.
pull/188/head
Paul Sokolovsky 2017-06-06 21:04:37 +03:00
rodzic 21d60a8b5f
commit 16afc06b8c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -55,7 +55,7 @@ class PollEventLoop(EventLoop):
if DEBUG and __debug__:
log.debug("poll.wait(%d)", delay)
# We need one-shot behavior (second arg of 1 to .poll())
res = self.poller.poll(delay, 1)
res = self.poller.ipoll(delay, 1)
#log.debug("poll result: %s", res)
# Remove "if res" workaround after
# https://github.com/micropython/micropython/issues/2716 fixed.