Exemplo n.º 1
0
 def __init__(self, client_impl: 'Impl', rpcs: client.PendingRpcs,
              channel: Channel, method: Method,
              default_timeout_s: Optional[float]):
     self._impl = client_impl
     self._rpcs = rpcs
     self._rpc = client.PendingRpc(channel, method.service, method)
     self.default_timeout_s: Optional[float] = default_timeout_s
Exemplo n.º 2
0
def _rpc(method_stub):
    return client.PendingRpc(method_stub.channel, method_stub.method.service,
                             method_stub.method)
Exemplo n.º 3
0
 def __init__(self, client_impl: 'Impl', rpcs: client.PendingRpcs,
              channel: Channel, method: Method):
     self._impl = client_impl
     self._rpcs = rpcs
     self._rpc = client.PendingRpc(channel, method.service, method)