pep-525: Fix the shutdown_asyncgens example.

This commit is contained in:
Yury Selivanov 2016-12-13 20:06:37 -05:00
parent 65b178826a
commit 3799435f69
1 changed files with 1 additions and 1 deletions

View File

@ -278,8 +278,8 @@ An example of how ``shutdown_asyncgens`` coroutine should be used::
try:
loop.run_forever()
loop.run_until_complete(loop.shutdown_asyncgens())
finally:
loop.run_until_complete(loop.shutdown_asyncgens())
loop.close()