Skip to content
Snippets Groups Projects
Commit 09401231 authored by Antoine Millet's avatar Antoine Millet
Browse files

Moved remains properties on async watcher.

parent 36dffbb1
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment