rx.internal.util.SynchronizedSubscription Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxjava-core Show documentation
Show all versions of rxjava-core Show documentation
rxjava-core developed by Netflix
The newest version!
package rx.internal.util;
import rx.Subscription;
public class SynchronizedSubscription implements Subscription {
private final Subscription s;
public SynchronizedSubscription(Subscription s) {
this.s = s;
}
@Override
public synchronized void unsubscribe() {
s.unsubscribe();
}
@Override
public synchronized boolean isUnsubscribed() {
return s.isUnsubscribed();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy