--[=[
	Creates an immediately resolved Promise with the given value.

	@param ... any
	@return Promise<...any>
]=]

function Promise.resolve(...)
	local length, values = pack(...)
	return Promise._new(debug.traceback(nil, 2), function(resolve)
		resolve(unpack(values, 1, length))
	end)
end
