[issue24383] consider implementing __await__ on concurrent.futures.Future
Alex Grönholm
report at bugs.python.org
Sun Aug 2 21:30:22 CEST 2015
Alex Grönholm added the comment:
Updated patch per review comments.
I also corrected the order of the lines in the new block. If _must_cancel is True, it would have tried to call cancel() on _fut_waiter before it was set. Now the code matches that of the original block.
The docs don't seem to explicitly say anywhere that they only accept asyncio's Futures and not concurrent Futures, so I'm unsure if any changes are needed there at all.
----------
Added file: http://bugs.python.org/file40106/concurrent.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24383>
_______________________________________
More information about the Python-bugs-list
mailing list