trio icon indicating copy to clipboard operation
trio copied to clipboard

throw unraisable exceptions out of trio.run if possible

Open graingert opened this issue 3 years ago • 0 comments

trio sometimes intentionally raises Unraisable exceptions while the system nursery is running - eg asyncgen finalization

I think instead it should throw them into the system nursery and if it can't throw them into the nursery (the one-tick window after the system-nursery is closed) it should throw them out of run only if it can't throw them out of run it should only then throw them into sys.unraisablehook

graingert avatar Jul 19 '22 22:07 graingert