def close_when_done (self):
        self.producer_fifo.push (None)

    # refill the outgoing buffer by calling the more() method
    # of the first producer in the queue
automatically close this channel once the outgoing queue is empty
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/asynchat.py/async_chat.close_when_done