CompletableFuture<List<Value>> (ArrayReference ref, int index, int length) { if (ref instanceof ArrayReferenceImpl && isAsyncEnabled()) { return reschedule(((ArrayReferenceImpl)ref).getValuesAsync(index, length)); } return completedFuture(ref.getValues(index, length)); }