58 lines
2.6 KiB
Java
58 lines
2.6 KiB
Java
package o;
|
|
|
|
import o.InterfaceC14912gbn;
|
|
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public final class ggD {
|
|
|
|
/* loaded from: classes6.dex */
|
|
static final class Sts extends AbstractC14961gcz implements InterfaceC14937gcb<Integer, InterfaceC14912gbn.Sts, Integer> {
|
|
private ggA<?> b;
|
|
|
|
@Override // o.InterfaceC14937gcb
|
|
public final /* synthetic */ Integer invoke(Integer num, InterfaceC14912gbn.Sts sts) {
|
|
int intValue = num.intValue();
|
|
InterfaceC14912gbn.Sts sts2 = sts;
|
|
InterfaceC14912gbn.HBt<?> key = sts2.getKey();
|
|
InterfaceC14912gbn.Sts sts3 = this.b.e.get(key);
|
|
if (key != InterfaceC15034gfD.d) {
|
|
return Integer.valueOf(sts2 != sts3 ? PKIFailureInfo.systemUnavail : intValue + 1);
|
|
}
|
|
InterfaceC15034gfD interfaceC15034gfD = (InterfaceC15034gfD) sts3;
|
|
InterfaceC15034gfD interfaceC15034gfD2 = (InterfaceC15034gfD) sts2;
|
|
while (true) {
|
|
if (interfaceC15034gfD2 != null) {
|
|
if (interfaceC15034gfD2 == interfaceC15034gfD || !(interfaceC15034gfD2 instanceof C15121ghj)) {
|
|
break;
|
|
}
|
|
InterfaceC14998geG interfaceC14998geG = (InterfaceC14998geG) ((C15121ghj) interfaceC15034gfD2)._parentHandle;
|
|
interfaceC15034gfD2 = interfaceC14998geG != null ? interfaceC14998geG.d() : null;
|
|
} else {
|
|
interfaceC15034gfD2 = null;
|
|
break;
|
|
}
|
|
}
|
|
if (interfaceC15034gfD2 != interfaceC15034gfD) {
|
|
StringBuilder sb = new StringBuilder("Flow invariant is violated:\n\t\tEmission from another coroutine is detected.\n\t\tChild of ");
|
|
sb.append(interfaceC15034gfD2);
|
|
sb.append(", expected child of ");
|
|
sb.append(interfaceC15034gfD);
|
|
sb.append(".\n\t\tFlowCollector is not thread-safe and concurrent emissions are prohibited.\n\t\tTo mitigate this restriction please use 'channelFlow' builder instead of 'flow'");
|
|
throw new IllegalStateException(sb.toString().toString());
|
|
}
|
|
if (interfaceC15034gfD != null) {
|
|
intValue++;
|
|
}
|
|
return Integer.valueOf(intValue);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public Sts(ggA<?> gga) {
|
|
super(2);
|
|
this.b = gga;
|
|
}
|
|
}
|
|
}
|