[ARVADOS] updated: aeb481ad2a9b9c3c090b15b317d6ce262ca95da9
git at public.curoverse.com
git at public.curoverse.com
Mon Jul 27 09:12:30 EDT 2015
Summary of changes:
sdk/python/arvados/events.py | 4 ++++
1 file changed, 4 insertions(+)
via aeb481ad2a9b9c3c090b15b317d6ce262ca95da9 (commit)
from 17ce65cd493d8040640f5a5c3d2a97a5175a0465 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit aeb481ad2a9b9c3c090b15b317d6ce262ca95da9
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Mon Jul 27 09:13:20 2015 -0400
6706: Add docstrings to close()
diff --git a/sdk/python/arvados/events.py b/sdk/python/arvados/events.py
index 4581f05..802b647 100644
--- a/sdk/python/arvados/events.py
+++ b/sdk/python/arvados/events.py
@@ -41,6 +41,8 @@ class EventClient(WebSocketClient):
self.stop.set()
def close(self, code=1000, reason=''):
+ """Close event client and wait for it to finish."""
+
# parent close() method sends a asynchronous "closed" event to the server
super(EventClient, self).close(code, reason)
@@ -107,6 +109,8 @@ class PollClient(threading.Thread):
self.stop.wait(1)
def close(self):
+ """Close poll client and wait for it to finish."""
+
self.stop.set()
try:
self.join()
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list