Class ParallelCollect<T,C>

java.lang.Object
io.reactivex.rxjava3.parallel.ParallelFlowable<C>
io.reactivex.rxjava3.internal.operators.parallel.ParallelCollect<T,C>
Type Parameters:
T - the input value type
C - the collection type

public final class ParallelCollect<T,C> extends ParallelFlowable<C>
Reduce the sequence of values in each 'rail' to a single value.
  • Field Details

  • Constructor Details

  • Method Details

    • subscribe

      public void subscribe(org.reactivestreams.Subscriber<? super C>[] subscribers)
      Description copied from class: ParallelFlowable
      Subscribes an array of Subscribers to this ParallelFlowable and triggers the execution chain for all 'rails'.
      Backpressure:
      The backpressure behavior/expectation is determined by the supplied Subscriber.
      Scheduler:
      subscribe does not operate by default on a particular Scheduler.
      Specified by:
      subscribe in class ParallelFlowable<C>
      Parameters:
      subscribers - the subscribers array to run in parallel, the number of items must be equal to the parallelism level of this ParallelFlowable
      See Also:
    • reportError

      void reportError(org.reactivestreams.Subscriber<?>[] subscribers, Throwable ex)
    • parallelism

      public int parallelism()
      Description copied from class: ParallelFlowable
      Returns the number of expected parallel Subscribers.
      Specified by:
      parallelism in class ParallelFlowable<C>
      Returns:
      the number of expected parallel Subscribers