summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorKyle Stanley <aeros167@gmail.com>2020-03-27 19:31:22 (GMT)
committerGitHub <noreply@github.com>2020-03-27 19:31:22 (GMT)
commitb61b818d916942aad1f8f3e33181801c4a1ed14b (patch)
treee755041eb620f5b2937639b32c0b98d1afa54c89 /Misc
parent5f9c131c099d6675d1a9d0228497865488afd548 (diff)
downloadcpython-b61b818d916942aad1f8f3e33181801c4a1ed14b.zip
cpython-b61b818d916942aad1f8f3e33181801c4a1ed14b.tar.gz
cpython-b61b818d916942aad1f8f3e33181801c4a1ed14b.tar.bz2
bpo-39812: Remove daemon threads in concurrent.futures (GH-19149)
Remove daemon threads from :mod:`concurrent.futures` by adding an internal `threading._register_atexit()`, which calls registered functions prior to joining all non-daemon threads. This allows for compatibility with subinterpreters, which don't support daemon threads.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-03-25-00-35-48.bpo-39812.rIKnms.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-03-25-00-35-48.bpo-39812.rIKnms.rst b/Misc/NEWS.d/next/Library/2020-03-25-00-35-48.bpo-39812.rIKnms.rst
new file mode 100644
index 0000000..4cea878
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-03-25-00-35-48.bpo-39812.rIKnms.rst
@@ -0,0 +1,4 @@
+Removed daemon threads from :mod:`concurrent.futures` by adding
+an internal `threading._register_atexit()`, which calls registered functions
+prior to joining all non-daemon threads. This allows for compatibility
+with subinterpreters, which don't support daemon threads. \ No newline at end of file