commit | f40c66334d175b34143609c0926346c793d089b2 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Jan 28 23:32:40 2014 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Tue Jan 28 23:32:40 2014 +0100 |
tree | f8d17af3a741083b875354856edea4aaa3d5e17f | |
parent | 38b0d5a778c8e296374bd59e6f8bb840d317d6e0 [diff] [blame] |
asyncio doc: close the loop at exit
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 @@ loop = asyncio.get_event_loop() task = asyncio.async(print_http_headers(url)) loop.run_until_complete(task) + loop.close() Usage::