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

73 lines
2.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.concurrent.TimeUnit;
/* loaded from: classes6.dex */
public final class fXD<T> extends fUX<T, C13421fZx<T>> {
private TimeUnit b;
private AbstractC13173fSu e;
public fXD(InterfaceC13169fSq<T> interfaceC13169fSq, TimeUnit timeUnit, AbstractC13173fSu abstractC13173fSu) {
super(interfaceC13169fSq);
this.e = abstractC13173fSu;
this.b = timeUnit;
}
@Override // o.AbstractC13163fSk
public final void subscribeActual(InterfaceC13174fSv<? super C13421fZx<T>> interfaceC13174fSv) {
this.c.subscribe(new IeS(interfaceC13174fSv, this.b, this.e));
}
/* loaded from: classes6.dex */
static final class IeS<T> implements InterfaceC13174fSv<T>, fSJ {
private long a;
private InterfaceC13174fSv<? super C13421fZx<T>> b;
private fSJ c;
private TimeUnit d;
private AbstractC13173fSu e;
IeS(InterfaceC13174fSv<? super C13421fZx<T>> interfaceC13174fSv, TimeUnit timeUnit, AbstractC13173fSu abstractC13173fSu) {
this.b = interfaceC13174fSv;
this.e = abstractC13173fSu;
this.d = timeUnit;
}
@Override // o.InterfaceC13174fSv
public final void onSubscribe(fSJ fsj) {
if (EnumC13192fTf.d(this.c, fsj)) {
this.c = fsj;
this.a = AbstractC13173fSu.b(this.d);
this.b.onSubscribe(this);
}
}
@Override // o.fSJ
public final void dispose() {
this.c.dispose();
}
@Override // o.fSJ
public final boolean isDisposed() {
return this.c.isDisposed();
}
@Override // o.InterfaceC13174fSv
public final void onNext(T t) {
long b = AbstractC13173fSu.b(this.d);
long j = this.a;
this.a = b;
this.b.onNext(new C13421fZx(t, b - j, this.d));
}
@Override // o.InterfaceC13174fSv
public final void onError(Throwable th) {
this.b.onError(th);
}
@Override // o.InterfaceC13174fSv
public final void onComplete() {
this.b.onComplete();
}
}
}