function DataStorePromises.getAsync(Y,w)assert(typeof(Y)=="\073\110\115\116\097\110\099\101","\066\097\100 \114\111\098\108\111\120\068\097\116\097\083\116\111\114\101")assert(type(w)=="\115\116\114\105\110\103","\066\097\100 \107\101\121")return Promise.spawn(function(s,M)local x=nil local k,A=pcall(function()x=Y:GetAsync(w)end)if not k then return M(A)end return s(x)end)end
--[=[
	Wraps :GetAsync() in a promise
	@param robloxDataStore DataStore
	@param key string
	@return Promise<T>
]=]
function DataStorePromises.getAsync(robloxDataStore, key)
	assert(typeof(robloxDataStore) == "Instance", "Bad robloxDataStore")
	assert(type(key) == "string", "Bad key")

	return Promise.spawn(function(resolve, reject)
		local result = nil
		local ok, err = pcall(function()
			result = robloxDataStore:GetAsync(key)
		end)
		if not ok then
			return reject(err)
		end
		return resolve(result)
	end)
end
