diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-28 22:32:40 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-28 22:32:40 (GMT) |
commit | f40c66334d175b34143609c0926346c793d089b2 (patch) | |
tree | f8d17af3a741083b875354856edea4aaa3d5e17f /Doc/library/asyncio-dev.rst | |
parent | 38b0d5a778c8e296374bd59e6f8bb840d317d6e0 (diff) | |
download | cpython-f40c66334d175b34143609c0926346c793d089b2.zip cpython-f40c66334d175b34143609c0926346c793d089b2.tar.gz cpython-f40c66334d175b34143609c0926346c793d089b2.tar.bz2 |
asyncio doc: close the loop at exit
Diffstat (limited to 'Doc/library/asyncio-dev.rst')
-rw-r--r-- | Doc/library/asyncio-dev.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst index 74bbc28..73cc38a 100644 --- a/Doc/library/asyncio-dev.rst +++ b/Doc/library/asyncio-dev.rst @@ -169,6 +169,7 @@ operations:: asyncio.async(test()) loop.run_forever() print("Pending tasks at exit: %s" % asyncio.Task.all_tasks(loop)) + loop.close() Expected output:: |