public interface Subscription
Observable.subscribe(Subscriber) to allow unsubscribing.
 
 See utilities in Subscriptions and implementations in the rx.subscriptions package.
 
 This interface is the RxJava equivalent of IDisposable in Microsoft's Rx implementation.
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isUnsubscribed() | 
| void | unsubscribe()Stop receiving notifications on the  Subscriberthat was registered when this Subscription was received. | 
void unsubscribe()
Subscriber that was registered when this Subscription was received.
 
 This allows unregistering an Subscriber before it has finished receiving all events (ie. before onCompleted is called).
boolean isUnsubscribed()