bpo-32672: Add then execution for chaining python futures issue by dancollins34 · Pull Request #5335 · python/cpython
dancollins34
changed the title
Add then execution for chaining python futures
Add then execution for chaining python futures issue #32672
1st1
changed the title
Add then execution for chaining python futures issue #32672
bpo-32672: Add then execution for chaining python futures issue
This commit adds the ability to chain concurrent.futures Futures using .then(fn, executor) syntax, causing fn to be submitted to the executor upon the completion or cancellation of the future it is called on. This is a retry at this incorporating @gvanrossum 's comments from the python-ideas list, while not blocking immediately for the result and propogating cancellation both directions.
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