Public Member Functions | |
def | consume (self, value) |
def | consume_and_terminate (self, value) |
def | terminate (self) |
Interface for consumers of finite streams of values or objects.
def grpc.framework.foundation.stream.Consumer.consume | ( | self, | |
value | |||
) |
Accepts a value. Args: value: Any value accepted by this Consumer.
Reimplemented in grpc.framework.foundation.stream_util.ThreadSwitchingConsumer, grpc.framework.foundation.stream_util.IterableConsumer, and grpc.framework.foundation.stream_util.TransformingConsumer.
def grpc.framework.foundation.stream.Consumer.consume_and_terminate | ( | self, | |
value | |||
) |
Supplies a value and signals that no more values will be supplied. Args: value: Any value accepted by this Consumer.
Reimplemented in grpc.framework.foundation.stream_util.ThreadSwitchingConsumer, grpc.framework.foundation.stream_util.IterableConsumer, and grpc.framework.foundation.stream_util.TransformingConsumer.
def grpc.framework.foundation.stream.Consumer.terminate | ( | self | ) |
Indicates to this Consumer that no more values will be supplied.
Reimplemented in grpc.framework.foundation.stream_util.ThreadSwitchingConsumer, grpc.framework.foundation.stream_util.IterableConsumer, and grpc.framework.foundation.stream_util.TransformingConsumer.