function ContentProviderUtils.promisePreload(e)assert(type(e)=="\116\097\098\108\101","\066\097\100 \099\111\110\116\101\110\116\073\100\076\105\115\116")return Promise.spawn(function(J,B)local g,M=pcall(function()ContentProvider:PreloadAsync(e)end)if not g then return B(M)end J()end)end return ContentProviderUtils

function ContentProviderUtils.promisePreload(contentIdList)
	assert(type(contentIdList) == "table", "Bad contentIdList")

	return Promise.spawn(function(resolve, reject)
		local ok, err = pcall(function()
			ContentProvider:PreloadAsync(contentIdList)
		end)

		if not ok then
			return reject(err)
		end

		resolve()
	end)
end

return ContentProviderUtils
