--	local Timer = Timer.new()

	--Timer:OnFinish(function() timedOut = true end)
	--Timer:Start(self.Timeout)
	
	local queueNumber = self.QueueEnd
	self.QueueEnd = self.QueueEnd + 1
	
	while not self.Deleted and queueNumber ~= self.QueueIndex do --not timedOut
		wait(.1) 
	end
	
	--Timer:Stop()

	wait() --make sure last thread has finished
	
	--if timedOut then self:Next() print("Queue timeout") return false end
	--return true
end

function Queue:Next()
	self.QueueIndex = self.QueueIndex + 1
end





return Queue
