diff options
author | Sam Martin <ABitMoreDepth@users.noreply.github.com> | 2019-05-22 21:29:02 (GMT) |
---|---|---|
committer | Antoine Pitrou <antoine@python.org> | 2019-05-22 21:29:02 (GMT) |
commit | 2a3a2ece502c05ea33c95dd0db497189e0354bfd (patch) | |
tree | 76436af78c3c003166a1e4c353feb03c67314928 /Misc | |
parent | d8a82e2897b735e2b7e9e086f1d709365a2ad72c (diff) | |
download | cpython-2a3a2ece502c05ea33c95dd0db497189e0354bfd.zip cpython-2a3a2ece502c05ea33c95dd0db497189e0354bfd.tar.gz cpython-2a3a2ece502c05ea33c95dd0db497189e0354bfd.tar.bz2 |
bpo-33110: Catch errors raised when running add_done_callback on already completed futures (GH-13141)
Wrap the callback call within the `add_done_callback` function within concurrent.futures, in order to behave in an identical manner to callbacks added to a running future are triggered once it has completed.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-05-06-22-34-47.bpo-33110.rSJSCh.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-05-06-22-34-47.bpo-33110.rSJSCh.rst b/Misc/NEWS.d/next/Library/2019-05-06-22-34-47.bpo-33110.rSJSCh.rst new file mode 100644 index 0000000..f1e2460 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-05-06-22-34-47.bpo-33110.rSJSCh.rst @@ -0,0 +1 @@ +Handle exceptions raised by functions added by concurrent.futures add_done_callback correctly when the Future has already completed. |