Class CompletableFutures

java.lang.Object
com.datastax.astra.internal.utils.CompletableFutures

public class CompletableFutures extends Object
Utilities to work with Async functions.
  • Method Details

    • allDone

      public static <T> CompletionStage<Void> allDone(List<CompletionStage<T>> inputs)
      Merge multiple CompletionStage in a single one
      Type Parameters:
      T - generic used with stages
      Parameters:
      inputs - list of completion stages
      Returns:
      the merged stage