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

82 lines
2.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
/* renamed from: o.fUp, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13237fUp extends fRY {
private fRZ[] b;
public C13237fUp(fRZ[] frzArr) {
this.b = frzArr;
}
@Override // o.fRY
public final void c(InterfaceC13154fSb interfaceC13154fSb) {
fSC fsc = new fSC();
RVV rvv = new RVV(interfaceC13154fSb, new AtomicBoolean(), fsc, this.b.length + 1);
interfaceC13154fSb.onSubscribe(rvv);
for (fRZ frz : this.b) {
if (fsc.isDisposed()) {
return;
}
if (frz == null) {
fsc.dispose();
rvv.onError(new NullPointerException("A completable source is null"));
return;
}
frz.e(rvv);
}
rvv.onComplete();
}
/* renamed from: o.fUp$RVV */
/* loaded from: classes6.dex */
static final class RVV extends AtomicInteger implements InterfaceC13154fSb, fSJ {
private InterfaceC13154fSb a;
private AtomicBoolean c;
private fSC e;
RVV(InterfaceC13154fSb interfaceC13154fSb, AtomicBoolean atomicBoolean, fSC fsc, int i) {
this.a = interfaceC13154fSb;
this.c = atomicBoolean;
this.e = fsc;
lazySet(i);
}
@Override // o.InterfaceC13154fSb
public final void onSubscribe(fSJ fsj) {
this.e.e(fsj);
}
@Override // o.InterfaceC13154fSb
public final void onError(Throwable th) {
this.e.dispose();
if (this.c.compareAndSet(false, true)) {
this.a.onError(th);
} else {
C13418fZu.c(th);
}
}
@Override // o.InterfaceC13154fSb
public final void onComplete() {
if (decrementAndGet() == 0) {
this.a.onComplete();
}
}
@Override // o.fSJ
public final void dispose() {
this.e.dispose();
this.c.set(true);
}
@Override // o.fSJ
public final boolean isDisposed() {
return this.e.isDisposed();
}
}
}