def remove_from_queue(queue, *items):
    """
    Tries to remove an item from a queue.

    :param Queue queue: Queue to remove item from.
    :param items: Items to remove
    """
    with queue.mutex:
        for item in items:
            try:
                queue.queue.remove(item)
            except ValueError:
                pass
