[issue13785] Make concurrent.futures.Future state public

Brian Quinlan report at bugs.python.org
Sat Jan 14 22:00:16 CET 2012


Brian Quinlan <brian at sweetapp.com> added the comment:

Thanks for the patch!

1. The fetching the state feature seems reasonable but I think that explaining the difference between CANCELLED and CANCELLED_AND_NOTIFIED is going to be hard. Maybe you could look at how Doc/library/concurrent.futures.rst would need to be updated to see if we can provide a reasonable description of the different states?

2. Having the future record the history of its state transitions seems potentially useful but there is no precedent for this in other Python objects where it would also be useful. Maybe you could make the executors take a Futures factory and then provide a subclass that does that? Not sure that I like that either but...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13785>
_______________________________________


More information about the Python-bugs-list mailing list