def set_handler(self, handler):
        if self.handler is not None:
            return False

        self.handler = handler

        # Promote session item
        self.promote()

        return True
Publish Message.
dataset/ETHPy150Open mrjoes/tornadio/tornadio/pollingsession.py/PollingSession.set_handler--crossover with--dataset/ETHPy150Open eandersson/amqpstorm/amqpstorm/message.py/Message.publish