between each CompletableFuture requiring to wait 1 second within CompletableFuture.allOf

public static CompletableFuture> allOf(List> futuresList) {

CompletableFuture allFutures =

CompletableFuture.allOf(futuresList.toArray());

return allFutures.thenApply(v ->

futuresList.stream().

map(future -> future.join()).

collect(Collectors.toList())

);

}

between each CompletableFuture requiring to wait 1 second within CompletableFuture.allOf. How to add this? Please help...

Read More »

By: StackOverFlow - Thursday, 8 November

Related Posts