bpo-32672: Add then execution for chaining python futures issue by dancollins34 · Pull Request #5335 · python/cpython

@dancollins34 dancollins34 changed the title Add then execution for chaining python futures Add then execution for chaining python futures issue #32672

Jan 26, 2018

@1st1 1st1 changed the title Add then execution for chaining python futures issue #32672 bpo-32672: Add then execution for chaining python futures issue

Jan 26, 2018

@dancollins34

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.

asvetlov