[issue24795] Make event loops with statement context managers
Andrew Svetlov
report at bugs.python.org
Wed Dec 20 16:18:01 EST 2017
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
Superseded by `asyncio.run()` function.
P.S.
Context manager is not a solution because `loop.shutdown_asyncgens()` should be called before `loop.close()` and the method is a coroutine.
----------
nosy: +asvetlov
resolution: -> wont fix
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue24795>
_______________________________________
More information about the Python-bugs-list
mailing list