class Async::List
def each
def each return to_enum unless block_given? item = @head while item # We store the tail pointer so we can remove the current item from the linked list: tail = item.tail yield item item = tail end end
def each return to_enum unless block_given? item = @head while item # We store the tail pointer so we can remove the current item from the linked list: tail = item.tail yield item item = tail end end