def consume_and_terminate(self, value): _control.pipe_iterator_to_consumer( self._behavior(value, self._context), self._downstream, self._context.is_active, True)
def consume(self, value): _control.pipe_iterator_to_consumer( self._behavior(value, self._context), self._downstream, self._context.is_active, False)
def in_pool_thread(): _control.pipe_iterator_to_consumer( method(rendezvous, _control.RpcContext(operation_context)), response_consumer, operation_context.is_active, True)