def get_value(self, consumer=None):
        """
        If consumer is specified, the channel will record that consumer as having consumed the value.
        """
        if consumer:
            self.consumers[consumer] = True
        return self.value
def get_value ( self , consumer = None ) : if consumer : self . consumers [ consumer ] = True return self . value
If consumer is specified, the channel will record that consumer as having consumed the value.