Class FutureStreamJoiner.Completable

    • Method Detail

      • join

        public CompletableFuture<Void> join​(Stream<CompletableFuture<Void>> completableFutures,
                                            int concurrencyLimit,
                                            ExecutorService executorService)
        Returns a future that will complete normally once all futures in the given stream have completed normally.

        See FutureStreamJoiner for details.
        Parameters:
        completableFutures - the futures to join
        concurrencyLimit - the maximum number of incomplete futures at any point in time
        executorService - where to execute the stream consumer