Class FlowableCombineLatest<T,​R>

  • Type Parameters:
    T - the value type of the sources
    R - the result type
    All Implemented Interfaces:
    org.reactivestreams.Publisher<R>

    public final class FlowableCombineLatest<T,​R>
    extends Flowable<R>
    Combines the latest values from multiple sources through a function.
    • Field Detail

      • iterable

        @Nullable
        final @Nullable java.lang.Iterable<? extends org.reactivestreams.Publisher<? extends T>> iterable
      • combiner

        final Function<? super java.lang.Object[],​? extends R> combiner
      • bufferSize

        final int bufferSize
      • delayErrors

        final boolean delayErrors
    • Constructor Detail

      • FlowableCombineLatest

        public FlowableCombineLatest​(@NonNull
                                     @NonNull org.reactivestreams.Publisher<? extends T>[] array,
                                     @NonNull
                                     @NonNull Function<? super java.lang.Object[],​? extends R> combiner,
                                     int bufferSize,
                                     boolean delayErrors)
      • FlowableCombineLatest

        public FlowableCombineLatest​(@NonNull
                                     @NonNull java.lang.Iterable<? extends org.reactivestreams.Publisher<? extends T>> iterable,
                                     @NonNull
                                     @NonNull Function<? super java.lang.Object[],​? extends R> combiner,
                                     int bufferSize,
                                     boolean delayErrors)
    • Method Detail

      • subscribeActual

        public void subscribeActual​(org.reactivestreams.Subscriber<? super R> s)
        Description copied from class: Flowable
        Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Subscribers.

        There is no need to call any of the plugin hooks on the current Flowable instance or the Subscriber; all hooks and basic safeguards have been applied by Flowable.subscribe(Subscriber) before this method gets called.

        Specified by:
        subscribeActual in class Flowable<R>
        Parameters:
        s - the incoming Subscriber, never null