➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: Document asyncio.futures.wrap_future()
类型: enhancement Stage: resolved
Components: Documentation Versions: Python 3.5
process
状态: closed Resolution: duplicate
Dependencies: 后续: asyncio.wrap_future undocumented
View: 24755
分配给: docs@python 抄送列表: alex.gronholm, berker.peksag, docs@python, yselivanov
优先级: normal 关键字:

Created on 2015-08-03 11:44 by alex.gronholm, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg247924 - (view) Author: Alex Grönholm (alex.gronholm) * 日期: 2015-08-03 11:44
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.
msg247926 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) 日期: 2015-08-03 12:04
This is a duplicate of issue 24755.
历史
日期 用户 动作 参数
2022-04-11 14:58:19admin修改github: 68973
2015-08-03 12:31:27yselivanov修改抄送: + yselivanov
2015-08-03 12:04:02berker.peksag修改状态: open -> closed

后续: asyncio.wrap_future undocumented

抄送: + berker.peksag
消息: + msg247926
resolution: duplicate
stage: resolved
2015-08-03 11:44:43alex.gronholm创建