pep-525: Fix the shutdown_asyncgens example.
This commit is contained in:
parent
65b178826a
commit
3799435f69
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue