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

38 lines
1.5 KiB
Java

package o;
import java.util.Objects;
import java.util.concurrent.LinkedBlockingQueue;
/* renamed from: o.fVe, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13261fVe {
public static <T> void a(InterfaceC13169fSq<? extends T> interfaceC13169fSq, InterfaceC13174fSv<? super T> interfaceC13174fSv) {
LinkedBlockingQueue linkedBlockingQueue = new LinkedBlockingQueue();
C13184fTL c13184fTL = new C13184fTL(linkedBlockingQueue);
interfaceC13174fSv.onSubscribe(c13184fTL);
interfaceC13169fSq.subscribe(c13184fTL);
while (!c13184fTL.isDisposed()) {
Object poll = linkedBlockingQueue.poll();
if (poll == null) {
try {
poll = linkedBlockingQueue.take();
} catch (InterruptedException e) {
c13184fTL.dispose();
interfaceC13174fSv.onError(e);
return;
}
}
if (c13184fTL.isDisposed() || poll == C13184fTL.a || fYX.d(poll, interfaceC13174fSv)) {
return;
}
}
}
public static <T> void b(InterfaceC13169fSq<? extends T> interfaceC13169fSq, fSQ<? super T> fsq, fSQ<? super Throwable> fsq2, fSP fsp) {
Objects.requireNonNull(fsq, "onNext is null");
Objects.requireNonNull(fsq2, "onError is null");
Objects.requireNonNull(fsp, "onComplete is null");
a(interfaceC13169fSq, new fTY(fsq, fsq2, fsp, C13194fTh.c()));
}
}