equal
deleted
inserted
replaced
91 assert self.callback is None or callable(self.callback) |
91 assert self.callback is None or callable(self.callback) |
92 self._MakeCallImpl() |
92 self._MakeCallImpl() |
93 |
93 |
94 def Wait(self): |
94 def Wait(self): |
95 """Waits on the API call associated with this RPC.""" |
95 """Waits on the API call associated with this RPC.""" |
96 assert self.__state is not RPC.IDLE, ('RPC for %s.%s has not been started' % |
|
97 (self.package, self.call)) |
|
98 rpc_completed = self._WaitImpl() |
96 rpc_completed = self._WaitImpl() |
99 |
97 |
100 assert rpc_completed, ('RPC for %s.%s was not completed, and no other ' + |
98 assert rpc_completed, ('RPC for %s.%s was not completed, and no other ' + |
101 'exception was raised ' % (self.package, self.call)) |
99 'exception was raised ' % (self.package, self.call)) |
102 |
100 |