Пример #1
0
 def future(self,
            request_iterator,
            timeout=None,
            metadata=None,
            credentials=None):
     rpc_handler = self._channel_handler.invoke_rpc(
         self._method_full_rpc_name, _common.fuss_with_metadata(metadata),
         [], False, timeout)
     _invocation.consume_requests(request_iterator, rpc_handler)
     return _invocation.future_call(rpc_handler)
Пример #2
0
 def future(self,
            request_iterator,
            timeout=None,
            metadata=None,
            credentials=None):
     rpc_handler = self._channel_handler.invoke_rpc(
         self._method_full_rpc_name, _common.fuss_with_metadata(metadata),
         [], False, timeout)
     _invocation.consume_requests(request_iterator, rpc_handler)
     return _invocation.future_call(rpc_handler)