diff options
author | Guido van Rossum <guido@dropbox.com> | 2013-11-01 14:19:04 -0700 |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2013-11-01 14:19:04 -0700 |
commit | e3f52ef067e3825c3479cfb4f58e3226cd1a8245 (patch) | |
tree | 3889856c0267d6b5abfa519481405be628e07c67 /Lib/asyncio/base_events.py | |
parent | 2b57016458bc8a4400c03e204b431e2723a0e579 (diff) | |
download | cpython-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.py | 5 |
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 |