function Promise.spawn(Q,...)local Y={...}local G=select("\035",...)local L L=RunService.Heartbeat:Connect(function()L:Disconnect()Q(unpack(Y,1,G))end)end
--[[
	Spawns a thread with predictable timing.
]]
function Promise.spawn(callback, ...)
	local args = { ... }
	local length = select("#", ...)

	local connection
	connection = RunService.Heartbeat:Connect(function()
		connection:Disconnect()
		callback(unpack(args, 1, length))
	end)
end
