CompletableFuture<Integer> (ArrayReference ref) { if (ref instanceof ArrayReferenceImpl && isAsyncEnabled()) { return reschedule(((ArrayReferenceImpl)ref).lengthAsync()); } return completedFuture(ref.length()); }