function CancelToken.fromMaid(m)local t=CancelToken.new(EMPTY_FUNCTION)local l=m:GiveTask(function()t:_cancel()end)t.PromiseCancelled:Then(function()m[l]=nil end)return t end

function CancelToken.fromMaid(maid)
	local token = CancelToken.new(EMPTY_FUNCTION)

	local taskId = maid:GiveTask(function()
		token:_cancel()
	end)

	token.PromiseCancelled:Then(function()
		maid[taskId] = nil
	end)

	return token
end
