Class MaybeTakeUntilPublisher<T,​U>

  • Type Parameters:
    T - the value type
    U - the other's value type
    All Implemented Interfaces:
    MaybeSource<T>, HasUpstreamMaybeSource<T>

    public final class MaybeTakeUntilPublisher<T,​U>
    extends AbstractMaybeWithUpstream<T,​T>
    Relays the main source's event unless the other Publisher signals an item first or just completes at which point the resulting Maybe is completed.
    • Field Detail

      • other

        final org.reactivestreams.Publisher<U> other
    • Constructor Detail

      • MaybeTakeUntilPublisher

        public MaybeTakeUntilPublisher​(MaybeSource<T> source,
                                       org.reactivestreams.Publisher<U> other)
    • Method Detail

      • subscribeActual

        protected void subscribeActual​(MaybeObserver<? super T> observer)
        Description copied from class: Maybe
        Implement this method in subclasses to handle the incoming MaybeObservers.

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

        Specified by:
        subscribeActual in class Maybe<T>
        Parameters:
        observer - the MaybeObserver to handle, not null