commit | e3f52ef067e3825c3479cfb4f58e3226cd1a8245 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@dropbox.com> | Fri Nov 01 14:19:04 2013 -0700 |
committer | Guido van Rossum <guido@dropbox.com> | Fri Nov 01 14:19:04 2013 -0700 |
tree | 3889856c0267d6b5abfa519481405be628e07c67 | |
parent | 2b57016458bc8a4400c03e204b431e2723a0e579 [diff] [blame] |
asyncio: Document EventLoop.close().
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index f18a556..6e409ea 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py
@@ -186,6 +186,11 @@ 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