[issue24578] [RFE] Add asyncio.wait_for_result API

Martin Panter report at bugs.python.org
Tue Jul 7 01:41:14 CEST 2015


Martin Panter added the comment:

I don’t think you need the __await__() call. Just do loop.run_until_complete(awaitable).

I understand “asyncio” doesn’t support recursive calls into the same event loop on purpose; see Issue 22239. So this code would only be useful from outside of the event loop, or if more than one event loop was in use.

----------
nosy: +vadmium

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


More information about the Python-bugs-list mailing list