Message247924
Since Python 3.5 will not support awaiting for concurrent.futures.Futures natively, one has to use the asyncio.futures.wrap_future() function in coroutines like this:
async def foo():
await wrap_future(executor.submit(...))
The wrap_future() function is, however, not mentioned in the asyncio documentation. It should be, in order for the standard library to provide the above crutch until proper support arrives in 3.6. |
|
Date |
User |
Action |
Args |
2015-08-03 11:44:43 | alex.gronholm | set | recipients:
+ alex.gronholm, docs@python |
2015-08-03 11:44:43 | alex.gronholm | set | messageid: <1438602283.27.0.137322848878.issue24785@psf.upfronthosting.co.za> |
2015-08-03 11:44:43 | alex.gronholm | link | issue24785 messages |
2015-08-03 11:44:42 | alex.gronholm | create | |
|