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
def _rpc(method_stub): return client.PendingRpc(method_stub.channel, method_stub.method.service, method_stub.method)
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)