- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
35 lines
1.5 KiB
Java
35 lines
1.5 KiB
Java
package kotlinx.coroutines;
|
|
|
|
import kotlin.Result;
|
|
import kotlin.ResultKt;
|
|
import kotlin.Unit;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class ResumeAwaitOnCompletion extends JobNode {
|
|
public final CancellableContinuationImpl continuation;
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Object invoke(Object obj) {
|
|
invoke((Throwable) obj);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
public ResumeAwaitOnCompletion(CancellableContinuationImpl cancellableContinuationImpl) {
|
|
this.continuation = cancellableContinuationImpl;
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.CompletionHandlerBase
|
|
public void invoke(Throwable th) {
|
|
Object state$kotlinx_coroutines_core = getJob().getState$kotlinx_coroutines_core();
|
|
if (state$kotlinx_coroutines_core instanceof CompletedExceptionally) {
|
|
CancellableContinuationImpl cancellableContinuationImpl = this.continuation;
|
|
Result.Companion companion = Result.Companion;
|
|
cancellableContinuationImpl.resumeWith(Result.m4060constructorimpl(ResultKt.createFailure(((CompletedExceptionally) state$kotlinx_coroutines_core).cause)));
|
|
} else {
|
|
CancellableContinuationImpl cancellableContinuationImpl2 = this.continuation;
|
|
Result.Companion companion2 = Result.Companion;
|
|
cancellableContinuationImpl2.resumeWith(Result.m4060constructorimpl(JobSupportKt.unboxState(state$kotlinx_coroutines_core)));
|
|
}
|
|
}
|
|
}
|