function Promise.GetResults(N)if N._rejected then return false,unpack(N._rejected,1,N._valuesLength)elseif N._fulfilled then return true,unpack(N._fulfilled,1,N._valuesLength)else error("\083\116\105\108\108 \112\101\110\100\105\110\103")end end function Promise._getResolveReject(N)return function(...)N:Resolve(...)end,function(...)N:_reject({...},select("\035",...))end end

function Promise:GetResults()
	if self._rejected then
		return false, unpack(self._rejected, 1, self._valuesLength)
	elseif self._fulfilled then
		return true, unpack(self._fulfilled, 1, self._valuesLength)
	else
		error("Still pending")
	end
end

function Promise:_getResolveReject()
	return function(...)
		self:Resolve(...)
	end, function(...)
		self:_reject({...}, select("#", ...))
	end
end
