Thanks,
Yury
On Jul 28, 2017, 4:38 PM -0400, Chris Jerdonek <chris.jerdonek@gmail.com>, wrote:
Thanks, Yury. Have you also considered including recommended setup / cleanup boilerplate in a place where it's easy for asyncio users to find, like in the asyncio docs here?Yes, a PR would be welcome!One example of a Python module using this approach is itertools:Currently, even the example snippet provided for loop.shutdown_asyncgens():is incomplete because it doesn't execute shutdown_asyncgens() in a try-finally like you do in your latest patch posted on PR #465.Also, even if run() is added to Python 3.7, Python 3.6 users would still need / benefit from being able to find blessed boilerplate in a central place.I was going to release a new module on PyPI called "asyncio_next" or something with backports (and to experiment with the proposed APIs before 3.7 is out).Yury