- 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
38 lines
1.5 KiB
Java
38 lines
1.5 KiB
Java
package kotlinx.coroutines;
|
|
|
|
import kotlin.Result;
|
|
import kotlin.ResultKt;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public abstract class CompletionStateKt {
|
|
public static /* synthetic */ Object toState$default(Object obj, Function1 function1, int i, Object obj2) {
|
|
if ((i & 1) != 0) {
|
|
function1 = null;
|
|
}
|
|
return toState(obj, function1);
|
|
}
|
|
|
|
public static final Object toState(Object obj, Function1 function1) {
|
|
Throwable m4062exceptionOrNullimpl = Result.m4062exceptionOrNullimpl(obj);
|
|
if (m4062exceptionOrNullimpl == null) {
|
|
return function1 != null ? new CompletedWithCancellation(obj, function1) : obj;
|
|
}
|
|
return new CompletedExceptionally(m4062exceptionOrNullimpl, false, 2, null);
|
|
}
|
|
|
|
public static final Object toState(Object obj, CancellableContinuation cancellableContinuation) {
|
|
Throwable m4062exceptionOrNullimpl = Result.m4062exceptionOrNullimpl(obj);
|
|
return m4062exceptionOrNullimpl == null ? obj : new CompletedExceptionally(m4062exceptionOrNullimpl, false, 2, null);
|
|
}
|
|
|
|
public static final Object recoverResult(Object obj, Continuation continuation) {
|
|
if (obj instanceof CompletedExceptionally) {
|
|
Result.Companion companion = Result.Companion;
|
|
return Result.m4060constructorimpl(ResultKt.createFailure(((CompletedExceptionally) obj).cause));
|
|
}
|
|
return Result.m4060constructorimpl(obj);
|
|
}
|
|
}
|