Commit 09401231 authored by Antoine Millet's avatar Antoine Millet
Browse files

Moved remains properties on async watcher.

parent 36dffbb1
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -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)