Class SingleDoAfterSuccess<T>

java.lang.Object
io.reactivex.rxjava3.core.Single<T>
io.reactivex.rxjava3.internal.operators.single.SingleDoAfterSuccess<T>
Type Parameters:
T - the value type
All Implemented Interfaces:
SingleSource<T>

public final class SingleDoAfterSuccess<T> extends Single<T>
Calls a consumer after pushing the current item to the downstream.

History: 2.0.1 - experimental

Since:
2.1
  • Field Details

  • Constructor Details

    • SingleDoAfterSuccess

      public SingleDoAfterSuccess(SingleSource<T> source, Consumer<? super T> onAfterSuccess)
  • Method Details

    • 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