function Promise.defer(U)local f=debug.traceback(nil,2)local j j=Promise._new(f,function(j,M,n)local o o=Promise._timeEvent:Connect(function()o:Disconnect()local H,y,V=runExecutor(f,U,j,M,n)if not H then M(V[1])end end)end)return j end

function Promise.defer(callback)
	local traceback = debug.traceback(nil, 2)
	local promise
	promise = Promise._new(traceback, function(resolve, reject, onCancel)
		local connection
		connection = Promise._timeEvent:Connect(function()
			connection:Disconnect()
			local ok, _, result = runExecutor(traceback, callback, resolve, reject, onCancel)

			if not ok then
				reject(result[1])
			end
		end)
	end)

	return promise
end
