diff options
author | Kyle Stanley <aeros167@gmail.com> | 2020-03-27 19:31:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 19:31:22 (GMT) |
commit | b61b818d916942aad1f8f3e33181801c4a1ed14b (patch) | |
tree | e755041eb620f5b2937639b32c0b98d1afa54c89 /Misc | |
parent | 5f9c131c099d6675d1a9d0228497865488afd548 (diff) | |
download | cpython-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.rst | 4 |
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 |