summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-23 01:02:37 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-06-23 01:02:37 +0200
commitf328c7dc69da14766435d8608f89d81cd878bb4d (patch)
treee28c9941def58676945ff046468695a6f0a25561 /Doc
parent62511fd6d62ef53c1d3d050b478750efc5a7014c (diff)
downloadcpython-git-f328c7dc69da14766435d8608f89d81cd878bb4d.tar.gz
asyncio, Tulip issue 171: BaseEventLoop.close() now raises an exception if the
event loop is running. You must first stop the event loop and then wait until it stopped, before closing it.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-eventloop.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index e62f5efa63..c242fc3dc1 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -132,6 +132,8 @@ Run an event loop
This clears the queues and shuts down the executor, but does not wait for
the executor to finish.
+ The event loop must not be running.
+
This is idempotent and irreversible. No other methods should be called after
this one.