public final class MultipleAssignmentSubscription extends java.lang.Object implements Subscription
Observable to exit the loop if unsubscribed.| Constructor and Description |
|---|
MultipleAssignmentSubscription() |
| Modifier and Type | Method and Description |
|---|---|
Subscription |
get() |
boolean |
isUnsubscribed() |
void |
set(Subscription s) |
void |
unsubscribe()
Stop receiving notifications on the
Subscriber that was registered when this Subscription was received. |
public boolean isUnsubscribed()
isUnsubscribed in interface Subscriptionpublic void unsubscribe()
SubscriptionSubscriber 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).
unsubscribe in interface Subscriptionpublic void set(Subscription s)
public Subscription get()