[New-bugs-announce] [issue24785] Document asyncio.futures.wrap_future()

Alex Grönholm report at bugs.python.org
Mon Aug 3 13:44:43 CEST 2015


New submission from Alex Grönholm:

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.

----------
assignee: docs at python
components: Documentation
messages: 247924
nosy: alex.gronholm, docs at python
priority: normal
severity: normal
status: open
title: Document asyncio.futures.wrap_future()
type: enhancement
versions: Python 3.5

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


More information about the New-bugs-announce mailing list