64 lines
2.6 KiB
Java
64 lines
2.6 KiB
Java
package androidx.lifecycle;
|
|
|
|
import c.i.a.f.e.o.f;
|
|
import d0.l;
|
|
import d0.w.h.c;
|
|
import d0.w.i.a.e;
|
|
import d0.w.i.a.k;
|
|
import d0.z.d.m;
|
|
import kotlin.Unit;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
import kotlinx.coroutines.Job;
|
|
/* compiled from: CoroutineLiveData.kt */
|
|
@e(c = "androidx.lifecycle.BlockRunner$cancel$1", f = "CoroutineLiveData.kt", l = {187}, m = "invokeSuspend")
|
|
public final class BlockRunner$cancel$1 extends k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
|
public int label;
|
|
public final /* synthetic */ BlockRunner this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public BlockRunner$cancel$1(BlockRunner blockRunner, Continuation continuation) {
|
|
super(2, continuation);
|
|
this.this$0 = blockRunner;
|
|
}
|
|
|
|
@Override // d0.w.i.a.a
|
|
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
|
m.checkNotNullParameter(continuation, "completion");
|
|
return new BlockRunner$cancel$1(this.this$0, continuation);
|
|
}
|
|
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
|
return ((BlockRunner$cancel$1) create(coroutineScope, continuation)).invokeSuspend(Unit.a);
|
|
}
|
|
|
|
@Override // d0.w.i.a.a
|
|
public final Object invokeSuspend(Object obj) {
|
|
Object coroutine_suspended = c.getCOROUTINE_SUSPENDED();
|
|
int i = this.label;
|
|
if (i == 0) {
|
|
l.throwOnFailure(obj);
|
|
long access$getTimeoutInMs$p = BlockRunner.access$getTimeoutInMs$p(this.this$0);
|
|
this.label = 1;
|
|
if (f.O(access$getTimeoutInMs$p, this) == coroutine_suspended) {
|
|
return coroutine_suspended;
|
|
}
|
|
} else if (i == 1) {
|
|
l.throwOnFailure(obj);
|
|
} else {
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
}
|
|
if (!BlockRunner.access$getLiveData$p(this.this$0).hasActiveObservers()) {
|
|
Job access$getRunningJob$p = BlockRunner.access$getRunningJob$p(this.this$0);
|
|
if (access$getRunningJob$p != null) {
|
|
f.s(access$getRunningJob$p, null, 1, null);
|
|
}
|
|
BlockRunner.access$setRunningJob$p(this.this$0, null);
|
|
}
|
|
return Unit.a;
|
|
}
|
|
}
|