34 lines
732 B
Java
34 lines
732 B
Java
package rx.observers;
|
|
|
|
import j0.g;
|
|
import j0.n.c;
|
|
import rx.Subscriber;
|
|
public class SerializedSubscriber<T> extends Subscriber<T> {
|
|
public final g<T> i;
|
|
|
|
public SerializedSubscriber(Subscriber<? super T> subscriber) {
|
|
super(subscriber, true);
|
|
this.i = new c(subscriber);
|
|
}
|
|
|
|
public SerializedSubscriber(Subscriber<? super T> subscriber, boolean z2) {
|
|
super(subscriber, z2);
|
|
this.i = new c(subscriber);
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onCompleted() {
|
|
this.i.onCompleted();
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onError(Throwable th) {
|
|
this.i.onError(th);
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onNext(T t) {
|
|
this.i.onNext(t);
|
|
}
|
|
}
|