Class UniAndGroup2<T1,​T2>

  • Type Parameters:
    T1 - the type of item of the first Uni
    T2 - the type of item of the second Uni

    public class UniAndGroup2<T1,​T2>
    extends UniAndGroupIterable<T1>
    Configures the combination of 2 unis.
    • Constructor Detail

      • UniAndGroup2

        public UniAndGroup2​(Uni<? extends T1> source,
                            Uni<? extends T2> other)
    • Method Detail

      • combinedWith

        @CheckReturnValue
        public <O> Uni<O> combinedWith​(java.util.function.BiFunction<T1,​T2,​O> combinator)
        Creates the resulting Uni. The items are combined using the given combinator function.
        Type Parameters:
        O - the type of item
        Parameters:
        combinator - the combinator function, must not be null
        Returns:
        the resulting Uni. The items are combined into a Tuple2<T1, T2>.