mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 08:32:38 -06:00
44 lines
2.8 KiB
Java
44 lines
2.8 KiB
Java
package kotlinx.coroutines;
|
|
|
|
import androidx.exifinterface.media.ExifInterface;
|
|
import kotlin.Metadata;
|
|
import kotlin.Result;
|
|
import kotlin.ResultKt;
|
|
import kotlin.Unit;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* compiled from: JobSupport.kt */
|
|
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u00012\u00020\u0002B\u0013\u0012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004¢\u0006\u0002\u0010\u0005J\u0013\u0010\u0006\u001a\u00020\u00072\b\u0010\b\u001a\u0004\u0018\u00010\tH\u0096\u0002R\u0014\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\n"}, d2 = {"Lkotlinx/coroutines/ResumeAwaitOnCompletion;", ExifInterface.GPS_DIRECTION_TRUE, "Lkotlinx/coroutines/JobNode;", "continuation", "Lkotlinx/coroutines/CancellableContinuationImpl;", "(Lkotlinx/coroutines/CancellableContinuationImpl;)V", "invoke", "", "cause", "", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public final class ResumeAwaitOnCompletion<T> extends JobNode {
|
|
private final CancellableContinuationImpl<T> continuation;
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(Throwable th) {
|
|
invoke2(th);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public ResumeAwaitOnCompletion(CancellableContinuationImpl<? super T> cancellableContinuationImpl) {
|
|
this.continuation = cancellableContinuationImpl;
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.CompletionHandlerBase
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public void invoke2(Throwable cause) {
|
|
Object state$kotlinx_coroutines_core = getJob().getState$kotlinx_coroutines_core();
|
|
if (DebugKt.getASSERTIONS_ENABLED() && !(!(state$kotlinx_coroutines_core instanceof Incomplete))) {
|
|
throw new AssertionError();
|
|
}
|
|
if (state$kotlinx_coroutines_core instanceof CompletedExceptionally) {
|
|
CancellableContinuationImpl<T> cancellableContinuationImpl = this.continuation;
|
|
Result.Companion companion = Result.INSTANCE;
|
|
cancellableContinuationImpl.resumeWith(Result.m5698constructorimpl(ResultKt.createFailure(((CompletedExceptionally) state$kotlinx_coroutines_core).cause)));
|
|
} else {
|
|
CancellableContinuationImpl<T> cancellableContinuationImpl2 = this.continuation;
|
|
Result.Companion companion2 = Result.INSTANCE;
|
|
cancellableContinuationImpl2.resumeWith(Result.m5698constructorimpl(JobSupportKt.unboxState(state$kotlinx_coroutines_core)));
|
|
}
|
|
}
|
|
}
|