trio
trio copied to clipboard
throw unraisable exceptions out of trio.run if possible
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