commit | 2a3a2ece502c05ea33c95dd0db497189e0354bfd | [log] [tgz] |
---|---|---|
author | Sam Martin <ABitMoreDepth@users.noreply.github.com> | Wed May 22 22:29:02 2019 +0100 |
committer | Antoine Pitrou <antoine@python.org> | Wed May 22 23:29:02 2019 +0200 |
tree | 76436af78c3c003166a1e4c353feb03c67314928 | |
parent | d8a82e2897b735e2b7e9e086f1d709365a2ad72c [diff] |
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.