Uses of Interface
io.reactivex.rxjava3.core.Observer
Packages that use Observer
Package
Description
Base reactive classes:
Flowable, Observable,
Single, Maybe and
Completable; base reactive consumers;
other common base interfaces.Default wrappers and implementations for observer-based consumer classes and interfaces,
including disposable and resource-tracking variants and
the
TestObserver that allows unit testing
Observable-, Single-,
Maybe- and Completable-based flows.Contains the central plugin handler
RxJavaPlugins
class to hook into the lifecycle of the base reactive types and schedulers.Classes representing so-called hot sources, aka subjects, that implement a base reactive class and
the respective consumer type at once to allow forms of multicasting events to multiple
consumers as well as consuming another base reactive type of their kind.
-
Uses of Observer in io.reactivex.rxjava3.core
Methods in io.reactivex.rxjava3.core with type parameters of type ObserverModifier and TypeMethodDescriptionObservable.subscribeWith(@NonNull E observer) Subscribes a givenObserver(subclass) to the currentObservableand returns the givenObserverinstance as is.Methods in io.reactivex.rxjava3.core that return ObserverModifier and TypeMethodDescriptionObservableOperator.apply(@NonNull Observer<? super @NonNull Downstream> observer) Applies a function to the childObserverand returns a new parentObserver.Methods in io.reactivex.rxjava3.core with parameters of type ObserverModifier and TypeMethodDescriptionObservableOperator.apply(@NonNull Observer<? super @NonNull Downstream> observer) Applies a function to the childObserverand returns a new parentObserver.final voidObservable.blockingSubscribe(@NonNull Observer<? super @NonNull T> observer) Subscribes to the source and calls theObservermethods on the current thread.final @NonNull Observable<T> Returns anObservablethat forwards the items and terminal events of the currentObservableto itsObservers and to the given sharedObserverinstance.final voidObservable.safeSubscribe(@NonNull Observer<? super @NonNull T> observer) Subscribes to the currentObservableand wraps the givenObserverinto aSafeObserver(if not already aSafeObserver) that deals with exceptions thrown by a misbehavingObserver(that doesn't follow the Reactive Streams specification).final voidvoidSubscribes the givenObserverto thisObservableSourceinstance.protected abstract voidObservable.subscribeActual(@NonNull Observer<? super @NonNull T> observer) Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incomingObservers. -
Uses of Observer in io.reactivex.rxjava3.internal.disposables
Methods in io.reactivex.rxjava3.internal.disposables with parameters of type Observer -
Uses of Observer in io.reactivex.rxjava3.internal.jdk8
Classes in io.reactivex.rxjava3.internal.jdk8 that implement ObserverModifier and TypeClassDescriptionfinal classSignals the first element of the source via the underlying CompletableFuture, signals the a default item if the upstream is empty or signalsNoSuchElementException.final classSignals the last element of the source via the underlying CompletableFuture, signals the a default item if the upstream is empty or signalsNoSuchElementException.final classSignals the only element of the source via the underlying CompletableFuture, signals the a default item if the upstream is empty or signalsIllegalArgumentExceptionif the upstream has more than one item.Methods in io.reactivex.rxjava3.internal.jdk8 with parameters of type ObserverModifier and TypeMethodDescriptionprotected voidMaybeFlattenStreamAsObservable.subscribeActual(@NonNull Observer<? super R> s) protected voidObservableCollectWithCollector.subscribeActual(@NonNull Observer<? super R> observer) protected voidObservableFlatMapStream.subscribeActual(Observer<? super R> observer) protected voidObservableFromCompletionStage.subscribeActual(Observer<? super T> observer) protected voidObservableFromStream.subscribeActual(Observer<? super T> observer) protected voidObservableMapOptional.subscribeActual(Observer<? super R> observer) protected voidSingleFlattenStreamAsObservable.subscribeActual(@NonNull Observer<? super R> s) static <T> voidObservableFromStream.subscribeStream(Observer<? super T> observer, Stream<T> stream) Subscribes to the Stream. -
Uses of Observer in io.reactivex.rxjava3.internal.observers
Classes in io.reactivex.rxjava3.internal.observers that implement ObserverModifier and TypeClassDescriptionclassBase class for a fuseable intermediate observer.classfinal classBlocks until the upstream signals its first value or completes.final classBlocks until the upstream signals its last value or completes.final classclassA fuseable Observer that can generate 0 or 1 resulting value.final classWraps lambda callbacks and when the upstream terminates or this observer gets disposed, removes itself from aCompositeDisposable.final classfinal classfinal classAn Observer + Future that expects exactly one upstream value and provides it via the (blocking) Future API.final classSubscriber that can fuse with the upstream and calls a support interface whenever an event is available.final classclassQueueDrainObserver<T,U, V> Abstract base class for subscribers that hold another subscriber, a queue and requires queue-drain behavior.Fields in io.reactivex.rxjava3.internal.observers declared as ObserverModifier and TypeFieldDescriptionBasicFuseableObserver.downstreamThe downstream subscriber.DeferredScalarDisposable.downstreamThe target of the events.QueueDrainObserver.downstreamMethods in io.reactivex.rxjava3.internal.observers with parameters of type ObserverConstructors in io.reactivex.rxjava3.internal.observers with parameters of type ObserverModifierConstructorDescriptionBasicFuseableObserver(Observer<? super R> downstream) Construct a BasicFuseableObserver by wrapping the given subscriber.DeferredScalarDisposable(Observer<? super T> downstream) Constructs a DeferredScalarDisposable by wrapping the Observer.DeferredScalarObserver(Observer<? super R> downstream) Creates a DeferredScalarObserver instance and wraps a downstream Observer.DisposableLambdaObserver(Observer<? super T> actual, Consumer<? super Disposable> onSubscribe, Action onDispose) QueueDrainObserver(Observer<? super V> actual, SimplePlainQueue<U> queue) -
Uses of Observer in io.reactivex.rxjava3.internal.operators.completable
Methods in io.reactivex.rxjava3.internal.operators.completable with parameters of type ObserverModifier and TypeMethodDescriptionprotected voidCompletableToObservable.subscribeActual(Observer<? super T> observer) -
Uses of Observer in io.reactivex.rxjava3.internal.operators.maybe
Methods in io.reactivex.rxjava3.internal.operators.maybe with parameters of type ObserverModifier and TypeMethodDescriptionstatic <T> MaybeObserver<T> Creates aMaybeObserverwrapper around aObserver.protected voidMaybeFlatMapIterableObservable.subscribeActual(Observer<? super R> observer) protected voidMaybeToObservable.subscribeActual(Observer<? super T> observer) -
Uses of Observer in io.reactivex.rxjava3.internal.operators.mixed
Classes in io.reactivex.rxjava3.internal.operators.mixed that implement ObserverModifier and TypeClassDescriptionclassBase class for implementing concatMapX main observers.Methods in io.reactivex.rxjava3.internal.operators.mixed with parameters of type ObserverModifier and TypeMethodDescriptionprotected voidCompletableAndThenObservable.subscribeActual(Observer<? super R> observer) protected voidMaybeFlatMapObservable.subscribeActual(Observer<? super R> observer) protected voidObservableConcatMapMaybe.subscribeActual(Observer<? super R> observer) protected voidObservableConcatMapSingle.subscribeActual(Observer<? super R> observer) protected voidObservableSwitchMapMaybe.subscribeActual(Observer<? super R> observer) protected voidObservableSwitchMapSingle.subscribeActual(Observer<? super R> observer) protected voidSingleFlatMapObservable.subscribeActual(Observer<? super R> observer) -
Uses of Observer in io.reactivex.rxjava3.internal.operators.observable
Classes in io.reactivex.rxjava3.internal.operators.observable that implement ObserverModifier and TypeClassDescriptionfinal classAn observable which auto-connects to another observable, caches the elements from that observable but allows terminating the connection and completing the cache.static final classstatic final classfinal classMethods in io.reactivex.rxjava3.internal.operators.observable with parameters of type ObserverModifier and TypeMethodDescriptionstatic <T> ActionObservableInternalHelper.observerOnComplete(Observer<T> observer) ObservableInternalHelper.observerOnError(Observer<T> observer) static <T> Consumer<T> ObservableInternalHelper.observerOnNext(Observer<T> observer) static <T> voidObservableBlockingSubscribe.subscribe(ObservableSource<? extends T> o, Observer<? super T> observer) Subscribes to the source and calls the Observer methods on the current thread.protected voidObservableAll.subscribeActual(Observer<? super Boolean> t) voidObservableAmb.subscribeActual(Observer<? super T> observer) protected voidObservableAny.subscribeActual(Observer<? super Boolean> t) voidObservableAutoConnect.subscribeActual(Observer<? super T> child) protected voidObservableBuffer.subscribeActual(Observer<? super U> t) protected voidObservableBufferBoundary.subscribeActual(Observer<? super U> t) protected voidObservableBufferExactBoundary.subscribeActual(Observer<? super U> t) protected voidObservableBufferTimed.subscribeActual(Observer<? super U> t) protected voidObservableCache.subscribeActual(Observer<? super T> t) protected voidObservableCollect.subscribeActual(Observer<? super U> t) voidObservableCombineLatest.subscribeActual(Observer<? super R> observer) voidObservableConcatMap.subscribeActual(Observer<? super U> observer) protected voidObservableConcatMapEager.subscribeActual(Observer<? super R> observer) voidObservableConcatMapScheduler.subscribeActual(Observer<? super U> observer) protected voidObservableConcatWithCompletable.subscribeActual(Observer<? super T> observer) protected voidObservableConcatWithMaybe.subscribeActual(Observer<? super T> observer) protected voidObservableConcatWithSingle.subscribeActual(Observer<? super T> observer) voidObservableCount.subscribeActual(Observer<? super Long> t) protected voidObservableCreate.subscribeActual(Observer<? super T> observer) voidObservableDebounce.subscribeActual(Observer<? super T> t) voidObservableDebounceTimed.subscribeActual(Observer<? super T> t) voidObservableDefer.subscribeActual(Observer<? super T> observer) voidObservableDelay.subscribeActual(Observer<? super T> t) voidObservableDelaySubscriptionOther.subscribeActual(Observer<? super T> child) voidObservableDematerialize.subscribeActual(Observer<? super R> observer) protected voidObservableDetach.subscribeActual(Observer<? super T> observer) protected voidObservableDistinct.subscribeActual(Observer<? super T> observer) protected voidObservableDistinctUntilChanged.subscribeActual(Observer<? super T> observer) protected voidObservableDoAfterNext.subscribeActual(Observer<? super T> observer) protected voidObservableDoFinally.subscribeActual(Observer<? super T> observer) voidObservableDoOnEach.subscribeActual(Observer<? super T> t) protected voidObservableDoOnLifecycle.subscribeActual(Observer<? super T> observer) voidObservableElementAt.subscribeActual(Observer<? super T> t) protected voidObservableEmpty.subscribeActual(Observer<? super Object> o) voidObservableError.subscribeActual(Observer<? super T> observer) voidObservableFilter.subscribeActual(Observer<? super T> observer) voidObservableFlatMap.subscribeActual(Observer<? super U> t) protected voidObservableFlatMapCompletable.subscribeActual(Observer<? super T> observer) protected voidObservableFlatMapMaybe.subscribeActual(Observer<? super R> observer) protected voidObservableFlatMapSingle.subscribeActual(Observer<? super R> observer) protected voidObservableFlattenIterable.subscribeActual(Observer<? super R> observer) protected voidObservableFromAction.subscribeActual(Observer<? super T> observer) voidObservableFromArray.subscribeActual(Observer<? super T> observer) voidObservableFromCallable.subscribeActual(Observer<? super T> observer) protected voidObservableFromCompletable.subscribeActual(Observer<? super T> observer) voidObservableFromFuture.subscribeActual(Observer<? super T> observer) voidObservableFromIterable.subscribeActual(Observer<? super T> observer) protected voidObservableFromPublisher.subscribeActual(Observer<? super T> o) protected voidObservableFromRunnable.subscribeActual(Observer<? super T> observer) voidObservableFromSupplier.subscribeActual(Observer<? super T> observer) protected voidObservableFromUnsafeSource.subscribeActual(Observer<? super T> observer) voidObservableGenerate.subscribeActual(Observer<? super T> observer) voidObservableGroupBy.subscribeActual(Observer<? super GroupedObservable<K, V>> t) protected voidObservableGroupJoin.subscribeActual(Observer<? super R> observer) protected voidObservableHide.subscribeActual(Observer<? super T> o) voidObservableIgnoreElements.subscribeActual(Observer<? super T> t) voidObservableInterval.subscribeActual(Observer<? super Long> observer) voidObservableIntervalRange.subscribeActual(Observer<? super Long> observer) protected voidObservableJoin.subscribeActual(Observer<? super R> observer) protected voidObservableJust.subscribeActual(Observer<? super T> observer) voidObservableLift.subscribeActual(Observer<? super R> observer) voidObservableMap.subscribeActual(Observer<? super U> t) voidObservableMapNotification.subscribeActual(Observer<? super ObservableSource<? extends R>> t) voidObservableMaterialize.subscribeActual(Observer<? super Notification<T>> t) protected voidObservableMergeWithCompletable.subscribeActual(Observer<? super T> observer) protected voidObservableMergeWithMaybe.subscribeActual(Observer<? super T> observer) protected voidObservableMergeWithSingle.subscribeActual(Observer<? super T> observer) protected voidObservableNever.subscribeActual(Observer<? super Object> o) protected voidObservableObserveOn.subscribeActual(Observer<? super T> observer) protected voidObservableOnErrorComplete.subscribeActual(Observer<? super T> observer) voidObservableOnErrorNext.subscribeActual(Observer<? super T> t) voidObservableOnErrorReturn.subscribeActual(Observer<? super T> t) protected voidObservablePublish.subscribeActual(Observer<? super T> observer) protected voidObservablePublishSelector.subscribeActual(Observer<? super R> observer) protected voidObservableRange.subscribeActual(Observer<? super Integer> o) protected voidObservableRangeLong.subscribeActual(Observer<? super Long> o) protected voidObservableRefCount.subscribeActual(Observer<? super T> observer) voidObservableRepeat.subscribeActual(Observer<? super T> observer) voidObservableRepeatUntil.subscribeActual(Observer<? super T> observer) protected voidObservableRepeatWhen.subscribeActual(Observer<? super T> observer) protected voidObservableReplay.subscribeActual(Observer<? super T> observer) voidObservableRetryBiPredicate.subscribeActual(Observer<? super T> observer) voidObservableRetryPredicate.subscribeActual(Observer<? super T> observer) protected voidObservableRetryWhen.subscribeActual(Observer<? super T> observer) voidObservableSampleTimed.subscribeActual(Observer<? super T> t) voidObservableSampleWithObservable.subscribeActual(Observer<? super T> t) voidObservableScan.subscribeActual(Observer<? super T> t) voidObservableScanSeed.subscribeActual(Observer<? super R> t) voidObservableSequenceEqual.subscribeActual(Observer<? super Boolean> observer) protected voidObservableSerialized.subscribeActual(Observer<? super T> observer) voidObservableSkip.subscribeActual(Observer<? super T> observer) voidObservableSkipLast.subscribeActual(Observer<? super T> observer) voidObservableSkipLastTimed.subscribeActual(Observer<? super T> t) voidObservableSkipUntil.subscribeActual(Observer<? super T> child) voidObservableSkipWhile.subscribeActual(Observer<? super T> observer) voidObservableSubscribeOn.subscribeActual(Observer<? super T> observer) voidObservableSwitchIfEmpty.subscribeActual(Observer<? super T> t) voidObservableSwitchMap.subscribeActual(Observer<? super R> t) protected voidObservableTake.subscribeActual(Observer<? super T> observer) voidObservableTakeLast.subscribeActual(Observer<? super T> t) voidObservableTakeLastOne.subscribeActual(Observer<? super T> observer) voidObservableTakeLastTimed.subscribeActual(Observer<? super T> t) voidObservableTakeUntil.subscribeActual(Observer<? super T> child) voidObservableTakeUntilPredicate.subscribeActual(Observer<? super T> observer) voidObservableTakeWhile.subscribeActual(Observer<? super T> t) voidObservableThrottleFirstTimed.subscribeActual(Observer<? super T> t) protected voidObservableThrottleLatest.subscribeActual(Observer<? super T> observer) voidObservableTimeInterval.subscribeActual(Observer<? super Timed<T>> t) protected voidObservableTimeout.subscribeActual(Observer<? super T> observer) protected voidObservableTimeoutTimed.subscribeActual(Observer<? super T> observer) voidObservableTimer.subscribeActual(Observer<? super Long> observer) voidObservableToList.subscribeActual(Observer<? super U> t) voidObservableUnsubscribeOn.subscribeActual(Observer<? super T> t) voidObservableUsing.subscribeActual(Observer<? super T> observer) voidObservableWindow.subscribeActual(Observer<? super Observable<T>> t) voidObservableWindowBoundary.subscribeActual(Observer<? super Observable<T>> observer) voidObservableWindowBoundarySelector.subscribeActual(Observer<? super Observable<T>> t) protected voidObservableWindowTimed.subscribeActual(Observer<? super Observable<T>> downstream) voidObservableWithLatestFrom.subscribeActual(Observer<? super R> t) protected voidObservableWithLatestFromMany.subscribeActual(Observer<? super R> observer) voidObservableZip.subscribeActual(Observer<? super R> observer) voidObservableZipIterable.subscribeActual(Observer<? super V> t) static <T,R> boolean ObservableScalarXMap.tryScalarXMapSubscribe(ObservableSource<T> source, Observer<? super R> observer, Function<? super T, ? extends ObservableSource<? extends R>> mapper) Tries to subscribe to a possibly Supplier source's mapped ObservableSource.Constructors in io.reactivex.rxjava3.internal.operators.observable with parameters of type ObserverModifierConstructorDescriptionFromCompletableObserver(Observer<? super T> downstream) GroupByObserver(Observer<? super GroupedObservable<K, V>> actual, Function<? super T, ? extends K> keySelector, Function<? super T, ? extends V> valueSelector, int bufferSize, boolean delayError) ObserverResourceWrapper(Observer<? super T> downstream) OnErrorCompleteObserver(Observer<? super T> actual, Predicate<? super Throwable> predicate) ScalarDisposable(Observer<? super T> observer, T value) -
Uses of Observer in io.reactivex.rxjava3.internal.operators.single
Methods in io.reactivex.rxjava3.internal.operators.single with parameters of type ObserverModifier and TypeMethodDescriptionstatic <T> SingleObserver<T> Creates aSingleObserverwrapper around aObserver.protected voidSingleFlatMapIterableObservable.subscribeActual(Observer<? super R> observer) voidSingleToObservable.subscribeActual(Observer<? super T> observer) -
Uses of Observer in io.reactivex.rxjava3.internal.util
Classes in io.reactivex.rxjava3.internal.util that implement ObserverModifier and TypeClassDescriptionenumSingleton implementing many interfaces as empty.Methods in io.reactivex.rxjava3.internal.util that return ObserverMethods in io.reactivex.rxjava3.internal.util with parameters of type ObserverModifier and TypeMethodDescription<U> booleanInterprets the contents as NotificationLite objects and calls the appropriate Observer method.static <T> booleanCalls the appropriate Observer method based on the type of the notification.voidAccept the value and return true if forwarded.static <T> booleanNotificationLite.acceptFull(Object o, Observer<? super T> observer) Calls the appropriate Observer method based on the type of the notification.static <T,U> boolean QueueDrainHelper.checkTerminated(boolean d, boolean empty, Observer<?> observer, boolean delayError, SimpleQueue<?> q, Disposable disposable, ObservableQueueDrain<T, U> qd) static <T,U> void QueueDrainHelper.drainLoop(SimplePlainQueue<T> q, Observer<? super U> a, boolean delayError, Disposable dispose, ObservableQueueDrain<T, U> qd) static voidHalfSerializer.onComplete(Observer<?> observer, AtomicInteger wip, AtomicThrowable errors) Emits an onComplete signal or an onError signal with the given error or indicates the concurrently running onNext should do that.static voidHalfSerializer.onError(Observer<?> observer, Throwable ex, AtomicInteger wip, AtomicThrowable errors) Emits the given exception if possible or adds it to the given error container to be emitted by a concurrent onNext if one is running.static <T> voidHalfSerializer.onNext(Observer<? super T> observer, T value, AtomicInteger wip, AtomicThrowable errors) Emits the given value if possible and terminates if there was an onComplete or onError while emitting, drops the value otherwise.voidAtomicThrowable.tryTerminateConsumer(Observer<?> consumer) Tries to terminate this atomic throwable (by swapping in the TERMINATED indicator) and notifies the consumer if there was no error (onComplete) or there was a non-null, non-indicator exception contained before (onError). -
Uses of Observer in io.reactivex.rxjava3.observers
Classes in io.reactivex.rxjava3.observers that implement ObserverModifier and TypeClassDescriptionclassAbstract base implementation of anObserverwith support for cancelling a subscription viaDefaultObserver.cancel()(synchronously) and callsDefaultObserver.onStart()when the subscription happens.classAn abstractObserverthat allows asynchronous cancellation by implementingDisposable.classAn abstractObserverthat allows asynchronous cancellation of its subscription and associated resources.final classSafeObserver<T>Wraps anotherObserverand ensures allonXXXmethods conform the protocol (except the requirement for serialized access).final classSerializes access to theObserver.onNext(Object),Observer.onError(Throwable)andObserver.onComplete()methods of anotherObserver.classTestObserver<T>AnObserver,MaybeObserver,SingleObserverandCompletableObservercomposite that can record events fromObservables,Maybes,Singles andCompletables and allows making assertions about them.Methods in io.reactivex.rxjava3.observers with parameters of type ObserverModifier and TypeMethodDescriptionstatic <T> @NonNull TestObserver<T> Constructs a forwardingTestObserver.Constructors in io.reactivex.rxjava3.observers with parameters of type ObserverModifierConstructorDescriptionSafeObserver(@NonNull Observer<? super T> downstream) Constructs aSafeObserverby wrapping the given actualObserver.SerializedObserver(@NonNull Observer<? super T> downstream) Construct aSerializedObserverby wrapping the given actualObserver.SerializedObserver(@NonNull Observer<? super T> actual, boolean delayError) Construct a SerializedObserver by wrapping the given actualObserverand optionally delaying the errors till all regular values have been emitted from the internal buffer.TestObserver(@NonNull Observer<? super T> downstream) Constructs a forwardingTestObserver. -
Uses of Observer in io.reactivex.rxjava3.plugins
Methods in io.reactivex.rxjava3.plugins that return ObserverModifier and TypeMethodDescriptionRxJavaPlugins.onSubscribe(@NonNull Observable<@NonNull T> source, @NonNull Observer<? super @NonNull T> observer) Calls the associated hook function.Methods in io.reactivex.rxjava3.plugins that return types with arguments of type ObserverModifier and TypeMethodDescriptionstatic @Nullable BiFunction<? super Observable, @NonNull ? super Observer, @NonNull ? extends Observer> RxJavaPlugins.getOnObservableSubscribe()Returns the current hook function.static @Nullable BiFunction<? super Observable, @NonNull ? super Observer, @NonNull ? extends Observer> RxJavaPlugins.getOnObservableSubscribe()Returns the current hook function.Methods in io.reactivex.rxjava3.plugins with parameters of type ObserverModifier and TypeMethodDescriptionRxJavaPlugins.onSubscribe(@NonNull Observable<@NonNull T> source, @NonNull Observer<? super @NonNull T> observer) Calls the associated hook function.Method parameters in io.reactivex.rxjava3.plugins with type arguments of type ObserverModifier and TypeMethodDescriptionstatic voidRxJavaPlugins.setOnObservableSubscribe(@Nullable BiFunction<? super Observable, @NonNull ? super Observer, @NonNull ? extends Observer> onObservableSubscribe) Sets the specific hook function.static voidRxJavaPlugins.setOnObservableSubscribe(@Nullable BiFunction<? super Observable, @NonNull ? super Observer, @NonNull ? extends Observer> onObservableSubscribe) Sets the specific hook function. -
Uses of Observer in io.reactivex.rxjava3.subjects
Classes in io.reactivex.rxjava3.subjects that implement ObserverModifier and TypeClassDescriptionfinal classAsyncSubject<T>A Subject that emits the very last value followed by a completion event or the received error to Observers.final classSubject that emits the most recent item it has observed and all subsequent observed items to each subscribedObserver.final classA Subject that emits (multicasts) items to currently subscribedObservers and terminal events to current or lateObservers.final classReplays events (in a configurable bounded or unbounded manner) to current and lateObservers.classSubject<T>Represents anObserverand anObservableat the same time, allowing multicasting events from a single source to multiple childObservers.final classA Subject that queues up events until a singleObserversubscribes to it, replays those events to it until theObservercatches up and then switches to relaying events live to this singleObserveruntil thisUnicastSubjectterminates or theObserverdisposes.Methods in io.reactivex.rxjava3.subjects with parameters of type ObserverModifier and TypeMethodDescriptionprotected voidAsyncSubject.subscribeActual(Observer<? super T> observer) protected voidBehaviorSubject.subscribeActual(Observer<? super T> observer) protected voidPublishSubject.subscribeActual(Observer<? super T> t) protected voidReplaySubject.subscribeActual(Observer<? super T> observer) protected voidUnicastSubject.subscribeActual(Observer<? super T> observer)