What is the recommended way to wait till the Completable future threads finish
If you really want to wait on all futures, you can simply call join() on each of them: growSeedFutureList.forEach(CompletableFuture::join); The main difference compared to using allOf() is that this will throw an exception as soon as it reaches a future completed with an exception, whereas the allOf().join() version will only throw an exception after all … Read more