gh-80961: Add daemon parameter to ThreadPoolExecutor by hniksic · Pull Request #13250 · python/cpython
hniksic
mannequin
mentioned this pull request
Add `daemon=False` keyword-only parameter to ThreadPoolExecutor. When True, worker threads are created as daemon threads and are not registered in the global _threads_queues, allowing the interpreter to exit without waiting for them to finish.
hniksic
changed the title
bpo-36780: Add wait_at_exit to ThreadPoolExecutor.shutdown.
gh-80961: Add daemon parameter to ThreadPoolExecutor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters