Shutdown app when one of many threads panic

They're an application which runs simultaneously on multiple threads, and the question is how to correctly shut down the app when one of the threads panic. Currently, we rely on lock poisoning...
I think about usage of cancellation token.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.