You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for a way to shut down all threads that provides best effort cleanup. I understand that its not possible to guarantee cleanup since one of the threads might hang in the shutdown process. To address this, a timeout argument can be provided. You tell all the threads to cleanup. If they are not done by the timeout, you do what os._exit() does. This would help with error handling where you want to end a program and a clean shutdown is preferred, but not critical.
Feature or enhancement + Pitch
I am looking for a way to shut down all threads that provides best effort cleanup. I understand that its not possible to guarantee cleanup since one of the threads might hang in the shutdown process. To address this, a timeout argument can be provided. You tell all the threads to cleanup. If they are not done by the timeout, you do what os._exit() does. This would help with error handling where you want to end a program and a clean shutdown is preferred, but not critical.
Previous discussion
Related to an old thread #77268
The text was updated successfully, but these errors were encountered: