All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rx.internal.util.SynchronizedSubscription Maven / Gradle / Ivy

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