class Async::List
def insert(item)
def insert(item) unless @head @head = item @tail = item # Consistency: item.head = nil item.tail = nil else @tail.tail = item item.head = @tail # Consistency: item.tail = nil @tail = item end @size += 1 return self end