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

109 lines
3.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import o.AbstractC13173fSu;
/* renamed from: o.fXw, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13349fXw<T> extends fUX<T, T> {
private fSQ<? super T> a;
private TimeUnit b;
private AbstractC13173fSu d;
private long e;
public C13349fXw(InterfaceC13169fSq<T> interfaceC13169fSq, long j, TimeUnit timeUnit, AbstractC13173fSu abstractC13173fSu, fSQ<? super T> fsq) {
super(interfaceC13169fSq);
this.e = j;
this.b = timeUnit;
this.d = abstractC13173fSu;
this.a = fsq;
}
@Override // o.AbstractC13163fSk
public final void subscribeActual(InterfaceC13174fSv<? super T> interfaceC13174fSv) {
this.c.subscribe(new Sts(new C13406fZi(interfaceC13174fSv), this.e, this.b, this.d.c(), this.a));
}
/* renamed from: o.fXw$Sts */
/* loaded from: classes6.dex */
static final class Sts<T> extends AtomicReference<fSJ> implements InterfaceC13174fSv<T>, fSJ, Runnable {
private InterfaceC13174fSv<? super T> a;
private TimeUnit b;
private fSQ<? super T> c;
private long d;
private volatile boolean e;
private AbstractC13173fSu.Sts g;
private fSJ h;
Sts(InterfaceC13174fSv<? super T> interfaceC13174fSv, long j, TimeUnit timeUnit, AbstractC13173fSu.Sts sts, fSQ<? super T> fsq) {
this.a = interfaceC13174fSv;
this.d = j;
this.b = timeUnit;
this.g = sts;
this.c = fsq;
}
@Override // o.InterfaceC13174fSv
public final void onSubscribe(fSJ fsj) {
if (EnumC13192fTf.d(this.h, fsj)) {
this.h = fsj;
this.a.onSubscribe(this);
}
}
@Override // o.InterfaceC13174fSv
public final void onNext(T t) {
if (!this.e) {
this.e = true;
this.a.onNext(t);
fSJ fsj = get();
if (fsj != null) {
fsj.dispose();
}
EnumC13192fTf.c(this, this.g.a(this, this.d, this.b));
return;
}
fSQ<? super T> fsq = this.c;
if (fsq != null) {
try {
fsq.c(t);
} catch (Throwable th) {
C13147fSI.c(th);
this.h.dispose();
this.a.onError(th);
this.g.dispose();
}
}
}
@Override // o.InterfaceC13174fSv
public final void onError(Throwable th) {
this.a.onError(th);
this.g.dispose();
}
@Override // o.InterfaceC13174fSv
public final void onComplete() {
this.a.onComplete();
this.g.dispose();
}
@Override // o.fSJ
public final void dispose() {
this.h.dispose();
this.g.dispose();
}
@Override // o.fSJ
public final boolean isDisposed() {
return this.g.isDisposed();
}
@Override // java.lang.Runnable
public final void run() {
this.e = false;
}
}
}