summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-dev.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-28 22:32:40 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-01-28 22:32:40 (GMT)
commitf40c66334d175b34143609c0926346c793d089b2 (patch)
treef8d17af3a741083b875354856edea4aaa3d5e17f /Doc/library/asyncio-dev.rst
parent38b0d5a778c8e296374bd59e6f8bb840d317d6e0 (diff)
downloadcpython-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.rst1
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::