Java Code Examples for io.reactivex.internal.subscriptions.SubscriptionHelper#cancel()

The following examples show how to use io.reactivex.internal.subscriptions.SubscriptionHelper#cancel() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FlowableStringInputStream.java    From rxjava2-extras with Apache License 2.0 5 votes vote down vote up
@Override
public void close() throws IOException {
    SubscriptionHelper.cancel(upstream);
    synchronized (this) {
        notifyAll();
    }
}
 
Example 2
Source File: FlowableStringInputStream.java    From akarnokd-misc with Apache License 2.0 5 votes vote down vote up
@Override
public void close() throws IOException {
    SubscriptionHelper.cancel(upstream);
    synchronized (this) {
        notifyAll();
    }
}
 
Example 3
Source File: AbstractSubscriber.java    From resilience4j with Apache License 2.0 5 votes vote down vote up
@Override
public void onError(Throwable t) {
    if (SubscriptionHelper.cancel(subscription)) {
        hookOnError(t);
        downstreamSubscriber.onError(t);
    }
}
 
Example 4
Source File: AbstractSubscriber.java    From resilience4j with Apache License 2.0 5 votes vote down vote up
@Override
public void onComplete() {
    if (SubscriptionHelper.cancel(subscription)) {
        hookOnComplete();
        downstreamSubscriber.onComplete();
    }
}
 
Example 5
Source File: LifeSubscriber.java    From rxjava-RxLife with Apache License 2.0 4 votes vote down vote up
@Override
public void dispose() {
    SubscriptionHelper.cancel(this);
}
 
Example 6
Source File: LifeConditionalSubscriber.java    From rxjava-RxLife with Apache License 2.0 4 votes vote down vote up
@Override
public void dispose() {
    SubscriptionHelper.cancel(this);
}
 
Example 7
Source File: MyLambdaSubscriber.java    From RxBus with Apache License 2.0 4 votes vote down vote up
@Override
public void cancel() {
    SubscriptionHelper.cancel(this);
}
 
Example 8
Source File: FlowableMatch.java    From rxjava2-extras with Apache License 2.0 4 votes vote down vote up
@Override
public void cancel() {
    SubscriptionHelper.cancel(this);
}
 
Example 9
Source File: FlowableRepeatingTransform.java    From rxjava2-extras with Apache License 2.0 4 votes vote down vote up
@Override
public void cancel() {
    cancelled = true;
    SubscriptionHelper.cancel(this.parent);
    chain.get().cancel();
}
 
Example 10
Source File: FlowablePassThroughTest.java    From rxjava2-extras with Apache License 2.0 4 votes vote down vote up
@Override
public void cancel() {
    SubscriptionHelper.cancel(parent);
}
 
Example 11
Source File: AbstractSubscriber.java    From resilience4j with Apache License 2.0 4 votes vote down vote up
@Override
public void cancel() {
    if (SubscriptionHelper.cancel(subscription)) {
        hookOnCancel();
    }
}