[Python-checkins] cpython (merge 3.4 -> default): Merge 3.4 (asyncio doc)
victor.stinner
python-checkins at python.org
Mon Feb 23 11:42:38 CET 2015
https://hg.python.org/cpython/rev/516d3773ecb2
changeset: 94734:516d3773ecb2
parent: 94732:49130b06e3ac
parent: 94733:05bd5ec8365e
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Feb 23 11:42:22 2015 +0100
summary:
Merge 3.4 (asyncio doc)
files:
Doc/library/asyncio-dev.rst | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
--- a/Doc/library/asyncio-dev.rst
+++ b/Doc/library/asyncio-dev.rst
@@ -212,6 +212,7 @@
loop = asyncio.get_event_loop()
asyncio.async(bug())
loop.run_forever()
+ loop.close()
Output::
@@ -258,6 +259,7 @@
loop = asyncio.get_event_loop()
asyncio.async(handle_exception())
loop.run_forever()
+ loop.close()
Another option is to use the :meth:`BaseEventLoop.run_until_complete`
function::
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list