function RxBrioUtils.mapBrio(t)assert(type(t)=="\102\117\110\099\116\105\111\110","\066\097\100 \112\114\111\106\101\099\116")warn("\091\082\120\066\114\105\111\085\116\105\108\115\046\109\097\112\066\114\105\111\093 - \068\101\112\114\101\099\097\116\101\100 \115\105\110\099\101 \051\046\054\046\048\046 \085\115\101 \082\120\066\114\105\111\085\116\105\108\115\046\109\097\112\066\114\105\111\066\114\105\111")return function(D)assert(Brio.isBrio(D),"\078\111\116 \097 \098\114\105\111")if D:IsDead()then return Rx.EMPTY end local G=t(D:GetValue())assert(Observable.isObservable(G),"\078\111\116 \097\110 \111\098\115\101\114\118\097\098\108\101")return RxBrioUtils.completeOnDeath(D,G)end end

function RxBrioUtils.mapBrio(project)
	assert(type(project) == "function", "Bad project")

	warn("[RxBrioUtils.mapBrio] - Deprecated since 3.6.0. Use RxBrioUtils.mapBrioBrio")

	return function(brio)
		assert(Brio.isBrio(brio), "Not a brio")

		if brio:IsDead() then
			return Rx.EMPTY
		end

		local observable = project(brio:GetValue())
		assert(Observable.isObservable(observable), "Not an observable")

		return RxBrioUtils.completeOnDeath(brio, observable)
	end
end
