what-the-bank/sources/o/fXH.java

90 lines
2.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.concurrent.atomic.AtomicBoolean;
/* loaded from: classes6.dex */
public final class fXH<T> extends fUX<T, T> {
private AbstractC13173fSu a;
public fXH(InterfaceC13169fSq<T> interfaceC13169fSq, AbstractC13173fSu abstractC13173fSu) {
super(interfaceC13169fSq);
this.a = abstractC13173fSu;
}
@Override // o.AbstractC13163fSk
public final void subscribeActual(InterfaceC13174fSv<? super T> interfaceC13174fSv) {
this.c.subscribe(new Sts(interfaceC13174fSv, this.a));
}
/* loaded from: classes6.dex */
static final class Sts<T> extends AtomicBoolean implements InterfaceC13174fSv<T>, fSJ {
private InterfaceC13174fSv<? super T> c;
fSJ d;
private AbstractC13173fSu e;
Sts(InterfaceC13174fSv<? super T> interfaceC13174fSv, AbstractC13173fSu abstractC13173fSu) {
this.c = interfaceC13174fSv;
this.e = abstractC13173fSu;
}
@Override // o.InterfaceC13174fSv
public final void onSubscribe(fSJ fsj) {
if (EnumC13192fTf.d(this.d, fsj)) {
this.d = fsj;
this.c.onSubscribe(this);
}
}
@Override // o.InterfaceC13174fSv
public final void onNext(T t) {
if (get()) {
return;
}
this.c.onNext(t);
}
@Override // o.InterfaceC13174fSv
public final void onError(Throwable th) {
if (get()) {
C13418fZu.c(th);
} else {
this.c.onError(th);
}
}
@Override // o.InterfaceC13174fSv
public final void onComplete() {
if (get()) {
return;
}
this.c.onComplete();
}
@Override // o.fSJ
public final void dispose() {
if (compareAndSet(false, true)) {
this.e.a(new LWm(this));
}
}
@Override // o.fSJ
public final boolean isDisposed() {
return get();
}
/* loaded from: classes6.dex */
final class LWm implements Runnable {
private Sts e;
LWm(Sts sts) {
this.e = sts;
}
@Override // java.lang.Runnable
public final void run() {
this.e.d.dispose();
}
}
}
}