circuitpython/extmod/uasyncio
Kevin Köck 15f41c2dbf extmod/uasyncio: Add global exception handling methods.
This commit adds support for global exception handling in uasyncio
according to the CPython error handling:
https://docs.python.org/3/library/asyncio-eventloop.html#error-handling-api

This allows a program to receive exceptions from detached tasks and log
them to an appropriate location, instead of them being printed to the REPL.

The implementation preallocates a context dictionary so in case of an
exception there shouldn't be any RAM allocation.

The approach here is compatible with CPython except that in CPython the
exception handler is called once the task that threw an uncaught exception
is freed, whereas in MicroPython the exception handler is called
immediately when the exception is thrown.
2020-04-04 10:37:00 +11:00
..
__init__.py extmod/uasyncio: Add StreamReader/StreamWriter as aliases of Stream cls. 2020-04-02 00:51:00 +11:00
core.py extmod/uasyncio: Add global exception handling methods. 2020-04-04 10:37:00 +11:00
event.py extmod/uasyncio: Add new implementation of uasyncio module. 2020-03-26 01:25:45 +11:00
funcs.py extmod/uasyncio: Add new implementation of uasyncio module. 2020-03-26 01:25:45 +11:00
lock.py extmod/uasyncio: Add error message to Lock.release's RuntimeError. 2020-04-02 00:40:23 +11:00
manifest.py extmod/uasyncio: Add manifest.py for freezing uasyncio Py files. 2020-03-26 01:25:45 +11:00
stream.py extmod/uasyncio: Add StreamReader/StreamWriter as aliases of Stream cls. 2020-04-02 00:51:00 +11:00
task.py extmod/uasyncio: Add new implementation of uasyncio module. 2020-03-26 01:25:45 +11:00