circuitpython/extmod/uasyncio
Jim Mussared 55169e0b4d
extmod/uasyncio/task.py: Fix crash when non-awaited task is awaited.
A task that has been sent to the loop's exception handler due to being
re-scheduled twice will then subsequently cause a `raise None` if it is
subsequently awaited. In the C version of task.py, this causes a segfault.

This makes the await succeed (via raising StopIteration instead).

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-10-15 14:58:07 -05:00
..
__init__.py extmod/uasyncio: Add ThreadSafeFlag. 2021-02-16 16:35:37 +11:00
core.py Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
event.py all: Update Python formatting to latest Black version 21.12b0. 2021-12-09 12:09:40 +11:00
funcs.py extmod/uasyncio: Fix gather returning exceptions from a cancelled task. 2021-11-17 14:11:31 +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: In open_connection use address info in socket creation. 2021-07-31 15:33:48 +10:00
task.py extmod/uasyncio/task.py: Fix crash when non-awaited task is awaited. 2022-10-15 14:58:07 -05:00