Class StronglyMultiCompletableFuture<T>

java.lang.Object
java.util.concurrent.CompletableFuture<List<T>>
org.stianloader.picoresolve.internal.StronglyMultiCompletableFuture<T>
All Implemented Interfaces:
CompletionStage<List<T>>, Future<List<T>>

public class StronglyMultiCompletableFuture<T> extends CompletableFuture<List<T>>
A CompletableFuture that only completes when all futures complete, exceptionally or not. The resulting future will only exceptionally complete if all other futures complete exceptionally, otherwise it will complete normally once the last future completes normally.
  • Constructor Details

  • Method Details

    • generateException

      protected CompletionException generateException()
    • throwExceptionIfCompletedUncleanly

      public final void throwExceptionIfCompletedUncleanly()