Class SingleTakeUntil<T,​U>

  • Type Parameters:
    T - the main value type
    U - the other value type
    All Implemented Interfaces:
    SingleSource<T>

    public final class SingleTakeUntil<T,​U>
    extends Single<T>
    Signals the events of the source Single or signals a CancellationException if the other Publisher signalled first.
    • Field Detail

      • other

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

      • SingleTakeUntil

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

      • subscribeActual

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

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

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