XAsyncSockets icon indicating copy to clipboard operation
XAsyncSockets copied to clipboard

Use of select.select vs select.poll

Open doc-hex opened this issue 5 years ago • 0 comments

This code is using uselect.select() to block for events. However, I want to run the code under the Unix port of micropython (and esp32). That port doesn't provide the select method, and assumes everyone wants to use the superior poll object interface. The docs also have pretty strong language about select.select(): This function is provided by some MicroPython ports for compatibility and is not efficient. Usage of Poll is recommended instead. see here

It doesn't look hard to rework to use poll() but I'm surprised it wasn't done already and I'm thinking this might be a deliberate choice?

doc-hex avatar Aug 05 '20 14:08 doc-hex