We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
List<CompletableFuture<Optional<Long>>> completableFutureList = loans.stream() .map(loan -> CompletableFuture.supplyAsync(() -> processResponse(loan), executorService)) .collect(Collectors.toList()); List<Optional<Long>> result = completableFutureList.stream() .map(CompletableFuture::join) .collect(Collectors.toList());
There was an error while loading. Please reload this page.