Class Completables.JoinTuples<K,V>

java.lang.Object
com.artipie.conan.Completables.JoinTuples<K,V>
Type Parameters:
K - Key type for the CompletableFuture result value.
V - Type of the result value.
Enclosing class:
Completables

public static final class Completables.JoinTuples<K,V> extends Object
Converts List of Tuples with CompletableFutures to CompletableFuture providing list of Tuples.
Since:
0.1
  • Constructor Details

    • JoinTuples

      public JoinTuples(List<io.vavr.Tuple2<K,CompletableFuture<V>>> futures)
      Initializes instance with the List of Tuples with CompletableFuture.
      Parameters:
      futures - List of Tuples with CompletableFuture.
  • Method Details

    • toTuples

      public CompletableFuture<List<io.vavr.Tuple2<K,V>>> toTuples()
      Converts to the List of Tuples results inside CompletableFuture.
      Returns:
      List of Tuples inside CompletableFuture.