69 lines
2.0 KiB
Java
69 lines
2.0 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.concurrent.atomic.AtomicReference;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class fUK<R> extends AbstractC13163fSk<R> {
|
||
|
private InterfaceC13169fSq<? extends R> c;
|
||
|
private fRZ d;
|
||
|
|
||
|
public fUK(fRZ frz, InterfaceC13169fSq<? extends R> interfaceC13169fSq) {
|
||
|
this.d = frz;
|
||
|
this.c = interfaceC13169fSq;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC13163fSk
|
||
|
public final void subscribeActual(InterfaceC13174fSv<? super R> interfaceC13174fSv) {
|
||
|
Sts sts = new Sts(interfaceC13174fSv, this.c);
|
||
|
interfaceC13174fSv.onSubscribe(sts);
|
||
|
this.d.e(sts);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
static final class Sts<R> extends AtomicReference<fSJ> implements InterfaceC13174fSv<R>, InterfaceC13154fSb, fSJ {
|
||
|
private InterfaceC13169fSq<? extends R> b;
|
||
|
private InterfaceC13174fSv<? super R> e;
|
||
|
|
||
|
Sts(InterfaceC13174fSv<? super R> interfaceC13174fSv, InterfaceC13169fSq<? extends R> interfaceC13169fSq) {
|
||
|
this.b = interfaceC13169fSq;
|
||
|
this.e = interfaceC13174fSv;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onNext(R r) {
|
||
|
this.e.onNext(r);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onError(Throwable th) {
|
||
|
this.e.onError(th);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onComplete() {
|
||
|
InterfaceC13169fSq<? extends R> interfaceC13169fSq = this.b;
|
||
|
if (interfaceC13169fSq == null) {
|
||
|
this.e.onComplete();
|
||
|
} else {
|
||
|
this.b = null;
|
||
|
interfaceC13169fSq.subscribe(this);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.fSJ
|
||
|
public final void dispose() {
|
||
|
EnumC13192fTf.e(this);
|
||
|
}
|
||
|
|
||
|
@Override // o.fSJ
|
||
|
public final boolean isDisposed() {
|
||
|
return EnumC13192fTf.c(get());
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onSubscribe(fSJ fsj) {
|
||
|
EnumC13192fTf.c(this, fsj);
|
||
|
}
|
||
|
}
|
||
|
}
|