Commit 09401231 authored by Antoine Millet's avatar Antoine Millet

Moved remains properties on async watcher.

parent 36dffbb1
......@@ -36,6 +36,13 @@ class AsyncWatcher(object):
# Public API:
#
@property
def remains(self):
'''
Remaining expected responses.
'''
return len(self._expected_responses)
def register(self, rpc, method, *args, **kwargs):
'''
Call specified method on specified rpc with specified arguments
......@@ -84,9 +91,3 @@ class AsyncWatcher(object):
break
return responses
@property
def remains(self):
'''
Remaining expected responses.
'''
return len(self._expected_responses)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment