public interfaceSubscriptionObservable.subscribe(Subscriber) to allow unsubscribing. See the utilities inSubscriptions and the implementations in therx.subscriptions package.
This interface is the RxJava equivalent ofIDisposable in Microsoft's Rx implementation.
| Modifier and Type | Method and Description |
|---|---|
boolean | isUnsubscribed()Indicates whether this Subscription is currently unsubscribed. |
void | unsubscribe()Stops the receipt of notifications on the Subscriber that was registered when this Subscription was received. |
void unsubscribe()
Subscriber that was registered when this Subscription was received. This allows deregistering anSubscriber before it has finished receiving all events (i.e. before onCompleted is called).
boolean isUnsubscribed()
Subscription is currently unsubscribed.true if thisSubscription is currently unsubscribed,false otherwise