Message 247924 - Python tracker

Message247924

Author alex.gronholm
Recipients alex.gronholm, docs@python
Date 2015-08-03.11:44:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438602283.27.0.137322848878.issue24785@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-08-03 11:44:43alex.gronholmsetrecipients: + alex.gronholm, docs@python
2015-08-03 11:44:43alex.gronholmsetmessageid: <1438602283.27.0.137322848878.issue24785@psf.upfronthosting.co.za>
2015-08-03 11:44:43alex.gronholmlinkissue24785 messages
2015-08-03 11:44:42alex.gronholmcreate