-- Compiled with roblox-ts v1.3.3
local TS = _G[script]
local DatalinkService = TS.import(script, script.Parent.Parent.Parent.Parent)
local REQUEST_SIZE = 0
local customEventTest
do
	customEventTest = setmetatable({}, {
		__tostring = function()
			return "customEventTest"
		end,
	})
	customEventTest.__index = customEventTest
	function customEventTest.new(...)
		local self = setmetatable({}, customEventTest)
		return self:constructor(...) or self
	end
	function customEventTest:constructor()
	end
	function customEventTest:run()
		do
			local index = 1
			local _shouldIncrement = false
			while true do
				if _shouldIncrement then
					index += 1
				else
					_shouldIncrement = true
				end
				if not (index < REQUEST_SIZE) then
					break
				end
				task.spawn(function()
					return DatalinkService:FireCustomEvent("EventExample", "EventData1", {}):Then(function(index)
						print("Completed: ", index)
					end)
				end)
			end
		end
	end
end
return {
	customEventTest = customEventTest,
}
