summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-stream.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-stream.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-stream.rst')
-rw-r--r--Doc/library/asyncio-stream.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst
index 22733c1..b5ffdba 100644
--- a/Doc/library/asyncio-stream.rst
+++ b/Doc/library/asyncio-stream.rst
@@ -256,6 +256,7 @@ Simple example querying HTTP headers of the URL passed on the command line::
loop = asyncio.get_event_loop()
task = asyncio.async(print_http_headers(url))
loop.run_until_complete(task)
+ loop.close()
Usage::