class Async::List::Iterator
def initialize(list)
def initialize(list) @list = list # Insert the iterator as the first item in the list: @tail = list.tail @tail.head = self list.tail = self @head = list end
def initialize(list) @list = list # Insert the iterator as the first item in the list: @tail = list.tail @tail.head = self list.tail = self @head = list end