Class OperatorDoOnUnsubscribe<T>

java.lang.Object
rx.internal.operators.OperatorDoOnUnsubscribe<T>
Type Parameters:
T - The type of the elements in the Observable that this operator modifies
All Implemented Interfaces:
Func1<Subscriber<? super T>,Subscriber<? super T>>, Function, Observable.Operator<T,T>

public class OperatorDoOnUnsubscribe<T> extends Object implements Observable.Operator<T,T>
This operator modifies an Observable so a given action is invoked when the Observable is unsubscribed.
  • Field Details

    • unsubscribe

      private final Action0 unsubscribe
  • Constructor Details

    • OperatorDoOnUnsubscribe

      public OperatorDoOnUnsubscribe(Action0 unsubscribe)
      Constructs an instance of the operator with the callback that gets invoked when the modified Observable is unsubscribed
      Parameters:
      unsubscribe - The action that gets invoked when the modified Observable is unsubscribed
  • Method Details