discord-jadx/app/src/main/java/rx/subjects/SerializedSubject.java
2021-07-24 04:37:17 +02:00

41 lines
882 B
Java

package rx.subjects;
import j0.n.c;
import rx.Observable;
import rx.Subscriber;
public class SerializedSubject<T, R> extends Subject<T, R> {
public final c<T> j;
public class a implements Observable.a<R> {
public final /* synthetic */ Subject i;
public a(Subject subject) {
this.i = subject;
}
@Override // rx.functions.Action1
public void call(Object obj) {
this.i.i0((Subscriber) obj);
}
}
public SerializedSubject(Subject<T, R> subject) {
super(new a(subject));
this.j = new c<>(subject);
}
@Override // j0.g
public void onCompleted() {
this.j.onCompleted();
}
@Override // j0.g
public void onError(Throwable th) {
this.j.onError(th);
}
@Override // j0.g
public void onNext(T t) {
this.j.onNext(t);
}
}