class Async::List

def insert(item)

Inserts an item at the end of the list.
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