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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy