adafruit / Adafruit_CircuitPython_asyncio

CIrcuitPython subset of CPython asyncio library
MIT License
28 stars 16 forks source link

CancelledError not showing up as a backtrace #5

Open dhalbert opened 3 years ago

dhalbert commented 3 years ago

Canceling a task or raising CancelledError does not produce a backtrace. This is true when using the Python Task implementation. When tested on MicroPython, which uses the native _uasyncio.Task implementation, this works properly.

(I also tried getting the native _uasyncio up and running in CircuitPython, but it's also having issues, because we require that it provide an Task.__await__(), which it does not provide.)