Class FutureStreamJoiner.Completable

java.lang.Object
com.github.mizool.core.concurrent.FutureStreamJoiner.Completable
Enclosing class:
FutureStreamJoiner

public static final class FutureStreamJoiner.Completable extends Object
Provides fluent syntax for joining completable futures.

See FutureStreamJoiner for details.
  • Method Details

    • 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