MicroPython_ESP32_psRAM_LoBo
MicroPython_ESP32_psRAM_LoBo copied to clipboard
Any plans for adding uasyncio (again)?
@loboris you wrote in the thread https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/issues/20 " You can add uasyncio as a module (or frozen module).
At the moment, all my tests shows that using threads works better than uasyncio, so, for the moment, I don't have plans to include it as a standard (frozen) module. "
Why threads works better than uasyncio? I'm not using MicroPython yet, I just use asyncio for all my applications using CPython (x86/arm) on GNU/Linux, and works like as threads, but I prefer asyncio becouse it is simpler to write applications compared to threads. So, why in the MicroPython threads are better than uasyncio?
Ps: in the Python world asyncio is increasingly being used, so much. So, will be a great news for Python programmers to include uasyncio in the standard. :)
Thank you.
You can add it by yourself... Just add to components/micropython/esp32/modules as symlinks or just copy whole uasyncio dir with modules, and build firmware. It works perfect, I'm using uasyncio all the time :D