kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio: Switch to memory-efficient poll.ipoll() method.
As added in MicroPython 1.9.pull/188/head
rodzic
21d60a8b5f
commit
16afc06b8c
|
@ -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.
|
||||
|
|
Ładowanie…
Reference in New Issue