Package rx.internal.operators
Class OperatorDoOnUnsubscribe<T>
java.lang.Object
rx.internal.operators.OperatorDoOnUnsubscribe<T>
- Type Parameters:
T
- The type of the elements in theObservable
that this operator modifies
- All Implemented Interfaces:
Func1<Subscriber<? super T>,
,Subscriber<? super T>> Function
,Observable.Operator<T,
T>
This operator modifies an
Observable
so a given action is invoked when the Observable
is unsubscribed.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOperatorDoOnUnsubscribe
(Action0 unsubscribe) Constructs an instance of the operator with the callback that gets invoked when the modified Observable is unsubscribed -
Method Summary
-
Field Details
-
unsubscribe
-
-
Constructor Details
-
OperatorDoOnUnsubscribe
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 modifiedObservable
is unsubscribed
-
-
Method Details
-
call
- Specified by:
call
in interfaceFunc1<Subscriber<? super T>,
Subscriber<? super T>>
-