U
    "FZha                     @   s"   d Z ddlZG dd dejZdS )z3Interfaces related to streams of values or objects.    Nc                   @   s:   e Zd ZdZejdd Zejdd Zejdd ZdS )	Consumerz?Interface for consumers of finite streams of values or objects.c                 C   s
   t  dS )z^Accepts a value.

        Args:
          value: Any value accepted by this Consumer.
        NNotImplementedErrorselfvalue r   g/home/aprabhat/apps/x.techxrdev.in/venv/lib/python3.8/site-packages/grpc/framework/foundation/stream.pyconsume   s    zConsumer.consumec                 C   s
   t  dS )z@Indicates to this Consumer that no more values will be supplied.Nr   )r   r   r   r	   	terminate   s    zConsumer.terminatec                 C   s
   t  dS )zSupplies a value and signals that no more values will be supplied.

        Args:
          value: Any value accepted by this Consumer.
        Nr   r   r   r   r	   consume_and_terminate$   s    zConsumer.consume_and_terminateN)	__name__
__module____qualname____doc__abcabstractmethodr
   r   r   r   r   r   r	   r      s   

r   )r   r   ABCr   r   r   r   r	   <module>   s   