So, while the plan remains the same - work nice and slow thru the optimizations, I looked thru the code to see what pieces may be problematic for ESP8266, or missing, and fixed/added them. These were released in uasyncio package v.1.1 on PyPI.
So, I'd like to announce a softlaunch of uasyncio for ESP8266 for the interested parties. There's a thread on uasyncio at http://forum.micropython.org/viewtopic.php?f=15&t=85 . You can see examples at:
- https://github.com/micropython/micropyt ... asyncio.py (concurrent PWM with uasyncio.core)
- https://github.com/micropython/micropyt ... _client.py (HTTP client with uasyncio)
- https://github.com/pfalcon/picoweb/blob ... webapp2.py (A simple webapp using picoweb)
As most of other things in MicroPython, uasyncio implements a subset of big Python functionality, with mainline asyncio library described at https://docs.python.org/3/library/asyncio.html . It's huge read though, and MicroPython's uasyncio implements only small and sane subset of it, with few discrepancies which should be described in the forum thread above. So, if you're completely new to asyncio, feel free to run the examples above, then just look up some asyncio tutorial to get familiar with the concepts. Hopefully, this thread and forum will be also helpful with getting started and questions.