def retire(*list_of_channelEnds):
    """ Retire reader or writer, to do auto-poisoning
    When all readers or writer of a channel have retired. The channel is retired.
    """
    for channelEnd in list_of_channelEnds:
        channelEnd.retire()
