78 lines
2.4 KiB
Java
78 lines
2.4 KiB
Java
package o;
|
|
|
|
import java.util.Objects;
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public final class fUY<T, R> extends AbstractC13163fSk<R> {
|
|
private fSS<? super T, ? extends InterfaceC13169fSq<? extends R>> d;
|
|
private fSD<T> e;
|
|
|
|
public fUY(fSD<T> fsd, fSS<? super T, ? extends InterfaceC13169fSq<? extends R>> fss) {
|
|
this.e = fsd;
|
|
this.d = fss;
|
|
}
|
|
|
|
@Override // o.AbstractC13163fSk
|
|
public final void subscribeActual(InterfaceC13174fSv<? super R> interfaceC13174fSv) {
|
|
HBt hBt = new HBt(interfaceC13174fSv, this.d);
|
|
interfaceC13174fSv.onSubscribe(hBt);
|
|
this.e.c(hBt);
|
|
}
|
|
|
|
/* loaded from: classes6.dex */
|
|
static final class HBt<T, R> extends AtomicReference<fSJ> implements InterfaceC13174fSv<R>, InterfaceC13176fSx<T>, fSJ {
|
|
private InterfaceC13174fSv<? super R> a;
|
|
private fSS<? super T, ? extends InterfaceC13169fSq<? extends R>> d;
|
|
|
|
HBt(InterfaceC13174fSv<? super R> interfaceC13174fSv, fSS<? super T, ? extends InterfaceC13169fSq<? extends R>> fss) {
|
|
this.a = interfaceC13174fSv;
|
|
this.d = fss;
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onNext(R r) {
|
|
this.a.onNext(r);
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
this.a.onError(th);
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onComplete() {
|
|
this.a.onComplete();
|
|
}
|
|
|
|
@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);
|
|
}
|
|
|
|
@Override // o.InterfaceC13176fSx
|
|
public final void e(T t) {
|
|
try {
|
|
InterfaceC13169fSq interfaceC13169fSq = (InterfaceC13169fSq) Objects.requireNonNull(this.d.a(t), "The mapper returned a null Publisher");
|
|
if (isDisposed()) {
|
|
return;
|
|
}
|
|
interfaceC13169fSq.subscribe(this);
|
|
} catch (Throwable th) {
|
|
C13147fSI.c(th);
|
|
this.a.onError(th);
|
|
}
|
|
}
|
|
}
|
|
}
|