Hrvoje Nikšić <hnik...@gmail.com> added the comment: > I don't think there's much ThreadPoolExecutor can do. If you drop the > references to the threads, they still exist and they still be waited upon at > interpreter exit.
ThreadPoolExecutor introduces additional waiting of its own, and it is this wait the PR adds an option to disable. > The solution is for you to avoid having hanging threads. In some cases that is not possible. For example, the file IO on network file systems can take an arbitrary amount of time, and there is no way to implement a timeout. DNS lookups have been notorious for not supporting timeouts. Many third-party libraries, such as database drivers, still don't support timeouts. This is a real issue that bit many users in production systems, it's not about a toy program using "home-baked networking code". ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36780> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com