Class MultiSelectFirstOp<T>

  • Type Parameters:
    T - the type of item
    All Implemented Interfaces:
    Multi<T>, org.reactivestreams.Publisher<T>

    public final class MultiSelectFirstOp<T>
    extends AbstractMultiOperator<T,​T>
    Takes the n first items emitted by the upstream, cancelling the subscription after that.

    If n == 0, the subscriber gets completed if the upstream emits the completion, a failure signal, or a first (dropped) item.

    • Constructor Detail

      • MultiSelectFirstOp

        public MultiSelectFirstOp​(Multi<? extends T> upstream,
                                  long numberOfItems)