function Promise.spawn(p,...)local M={...}local t=select("\035",...)local D D=RunService.Heartbeat:Connect(function()D:Disconnect()p(unpack(M,1,t))end)end

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
