Class ObservableSwitchMapCompletable<T>

java.lang.Object
io.reactivex.rxjava3.core.Completable
io.reactivex.rxjava3.internal.operators.mixed.ObservableSwitchMapCompletable<T>
Type Parameters:
T - the upstream value type
All Implemented Interfaces:
CompletableSource

public final class ObservableSwitchMapCompletable<T> extends Completable
Maps the upstream values into CompletableSources, subscribes to the newer one while disposing the subscription to the previous CompletableSource, thus keeping at most one active CompletableSource running.

History: 2.1.11 - experimental

Since:
2.2
  • Field Details

  • Constructor Details

  • Method Details

    • subscribeActual

      protected void subscribeActual(CompletableObserver observer)
      Description copied from class: Completable
      Implement this method to handle the incoming CompletableObservers and perform the business logic in your operator.

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

      Specified by:
      subscribeActual in class Completable
      Parameters:
      observer - the CompletableObserver instance, never null