From 094012314d2341fbe49867b58700f8138769dc7a Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Wed, 14 Sep 2011 10:54:04 +0200 Subject: [PATCH] Moved remains properties on async watcher. --- sjrpc/core/async.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sjrpc/core/async.py b/sjrpc/core/async.py index f7130a8..196b8e2 100644 --- a/sjrpc/core/async.py +++ b/sjrpc/core/async.py @@ -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) -- GitLab