summaryrefslogtreecommitdiff
path: root/py/persistentcode.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2019-10-29 21:04:55 +1100
committerDamien George <damien.p.george@gmail.com>2019-11-04 15:51:16 +1100
commit5578182ec97509dcc37521b78da5ee31b96f6b4e (patch)
tree59369f5d1bdd3bd3e289406930aa6d0d3cb13079 /py/persistentcode.c
parent576ed8922472f41dd603da9bd719bd9f1adbf31e (diff)
py/objgenerator: Allow pend_throw to an unstarted generator.
Replace the is_running field with a tri-state variable to indicate running/not-running/pending-exception. Update tests to cover the various cases. This allows cancellation in uasyncio even if the coroutine hasn't been executed yet. Fixes #5242
Diffstat (limited to 'py/persistentcode.c')
0 files changed, 0 insertions, 0 deletions