summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-02-23 10:42:22 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-02-23 10:42:22 (GMT)
commit7caa615fb02eab96b237af05a19e0a347e240aeb (patch)
treee7f5ad188ee25bbbba91488ef395566d62160260
parent1de71915ff6f0814f76a9e981a9e8fe23e6ee924 (diff)
parentb8064a8a16b63a929f94af300624bb239671ad82 (diff)
downloadcpython-7caa615fb02eab96b237af05a19e0a347e240aeb.zip
cpython-7caa615fb02eab96b237af05a19e0a347e240aeb.tar.gz
cpython-7caa615fb02eab96b237af05a19e0a347e240aeb.tar.bz2
Merge 3.4 (asyncio doc)
-rw-r--r--Doc/library/asyncio-dev.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
index bf77a8f..d7f474e 100644
--- a/Doc/library/asyncio-dev.rst
+++ b/Doc/library/asyncio-dev.rst
@@ -212,6 +212,7 @@ Example of unhandled exception::
loop = asyncio.get_event_loop()
asyncio.async(bug())
loop.run_forever()
+ loop.close()
Output::
@@ -258,6 +259,7 @@ coroutine in another coroutine and use classic try/except::
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::