aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/asyncio/base_events.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@dropbox.com>2013-11-01 14:19:04 -0700
committerGuido van Rossum <guido@dropbox.com>2013-11-01 14:19:04 -0700
commite3f52ef067e3825c3479cfb4f58e3226cd1a8245 (patch)
tree3889856c0267d6b5abfa519481405be628e07c67 /Lib/asyncio/base_events.py
parent2b57016458bc8a4400c03e204b431e2723a0e579 (diff)
downloadcpython-e3f52ef067e3825c3479cfb4f58e3226cd1a8245.tar.gz
cpython-e3f52ef067e3825c3479cfb4f58e3226cd1a8245.zip
asyncio: Document EventLoop.close().
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r--Lib/asyncio/base_events.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index f18a5565706..6e409eadc4c 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -186,6 +186,11 @@ class BaseEventLoop(events.AbstractEventLoop):
self.call_soon(_raise_stop_error)
def close(self):
+ """Close the event loop.
+
+ This clears the queues and shuts down the executor,
+ but does not wait for the executor to finish.
+ """
self._ready.clear()
self._scheduled.clear()
executor = self._default_executor