def METHOD_NAME(self) -> Iterable[_T]:
    """Remove and return values from the front of the queue until it's closed.
    Example:
        for value in queue.get_until_closed():
            print(value)
    """
    while True:
        try:
            yield self.get()
        except QueueClosed:
            break