[issue24383] consider implementing __await__ on concurrent.futures.Future

Alex Grönholm report at bugs.python.org
Sat Aug 1 01:16:24 CEST 2015


Alex Grönholm added the comment:

Sorry to keep you waiting. This sample code runs fine with the attached patch: https://gist.github.com/agronholm/43c71be0028bb866753a

In short, I implemented support for concurrent.futures in the asyncio Task class instead of making concurrent.futures aware of asyncio. The __await__ implementation in concurrent.futures closely mirrors that of asyncio's Future.

----------
Added file: http://bugs.python.org/file40090/asyncio_await.patch

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


More information about the Python-bugs-list mailing list