- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
80 lines
2.5 KiB
Java
80 lines
2.5 KiB
Java
package kotlinx.coroutines;
|
|
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.coroutines.ContinuationKt;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlinx.coroutines.intrinsics.CancellableKt;
|
|
import kotlinx.coroutines.intrinsics.UndispatchedKt;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public enum CoroutineStart {
|
|
DEFAULT,
|
|
LAZY,
|
|
ATOMIC,
|
|
UNDISPATCHED;
|
|
|
|
public /* synthetic */ class WhenMappings {
|
|
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
|
|
|
static {
|
|
int[] iArr = new int[CoroutineStart.values().length];
|
|
try {
|
|
iArr[CoroutineStart.DEFAULT.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[CoroutineStart.ATOMIC.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
iArr[CoroutineStart.UNDISPATCHED.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
iArr[CoroutineStart.LAZY.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
$EnumSwitchMapping$0 = iArr;
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void isLazy$annotations() {
|
|
}
|
|
|
|
public final boolean isLazy() {
|
|
return this == LAZY;
|
|
}
|
|
|
|
public final <T> void invoke(Function1 function1, Continuation continuation) {
|
|
int i = WhenMappings.$EnumSwitchMapping$0[ordinal()];
|
|
if (i == 1) {
|
|
CancellableKt.startCoroutineCancellable(function1, continuation);
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
ContinuationKt.startCoroutine(function1, continuation);
|
|
} else if (i == 3) {
|
|
UndispatchedKt.startCoroutineUndispatched(function1, continuation);
|
|
} else if (i != 4) {
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
}
|
|
|
|
public final <R, T> void invoke(Function2 function2, R r, Continuation continuation) {
|
|
int i = WhenMappings.$EnumSwitchMapping$0[ordinal()];
|
|
if (i == 1) {
|
|
CancellableKt.startCoroutineCancellable$default(function2, r, continuation, null, 4, null);
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
ContinuationKt.startCoroutine(function2, r, continuation);
|
|
} else if (i == 3) {
|
|
UndispatchedKt.startCoroutineUndispatched(function2, r, continuation);
|
|
} else if (i != 4) {
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
}
|
|
}
|