Class MultiSwitchOnEmptyOp<T>

  • All Implemented Interfaces:
    Multi<T>, org.reactivestreams.Publisher<T>

    public final class MultiSwitchOnEmptyOp<T>
    extends AbstractMultiOperator<T,​T>
    Switches to another Multi if the upstream is empty (completes without having emitted any items).
    • Constructor Detail

      • MultiSwitchOnEmptyOp

        public MultiSwitchOnEmptyOp​(Multi<? extends T> upstream,
                                    org.reactivestreams.Publisher<? extends T> alternative)