Open Yomguithereal opened 3 years ago
We still have an error possible when booting the dispatcher and when join the threads in exit
Maybe state also needs to release condition on imap cleanup.
raise KeyboardInterrupt in cleanup and shutdown
Basically the issue is this one: https://stackoverflow.com/questions/18637048/avoid-exception-ignored-in-python-enhanced-generator when a KeyboardInterrupt is fire in the cleanup phase (finally in the output generator or the __exit__
teardown).
Also see PEP419: https://www.python.org/dev/peps/pep-0419/
Also see this ref: https://vorpus.org/blog/control-c-handling-in-python-and-trio/
And edit the startup hook to make threads die before waiting barrier, or break the barrier