[issue24785] Document asyncio.futures.wrap_future()

2015-08-03 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue24785] Document asyncio.futures.wrap_future()

2015-08-03 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of issue 24755. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> asyncio.wrap_future undocumented ___ Python tracker

[issue24785] Document asyncio.futures.wrap_future()

2015-08-03 Thread Alex Grönholm
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,