ADD week 5
This commit is contained in:
		| @@ -0,0 +1,53 @@ | ||||
| package kotlinx.coroutines; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.ResultKt; | ||||
| import kotlin.Unit; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.coroutines.intrinsics.IntrinsicsKt; | ||||
| import kotlin.coroutines.jvm.internal.DebugMetadata; | ||||
| import kotlin.coroutines.jvm.internal.SuspendLambda; | ||||
| import kotlin.jvm.functions.Function0; | ||||
| import kotlin.jvm.functions.Function2; | ||||
|  | ||||
| /* JADX INFO: Add missing generic type declarations: [T] */ | ||||
| /* compiled from: Interruptible.kt */ | ||||
| @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0002\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u0000*\u00020\u0001H\u008a@"}, d2 = {"T", "Lkotlinx/coroutines/CoroutineScope;", "<anonymous>"}, k = 3, mv = {1, 8, 0}) | ||||
| @DebugMetadata(c = "kotlinx.coroutines.InterruptibleKt$runInterruptible$2", f = "Interruptible.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {}) | ||||
| /* loaded from: classes.dex */ | ||||
| final class InterruptibleKt$runInterruptible$2<T> extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super T>, Object> { | ||||
|     final /* synthetic */ Function0<T> $block; | ||||
|     private /* synthetic */ Object L$0; | ||||
|     int label; | ||||
|  | ||||
|     /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ | ||||
|     /* JADX WARN: Multi-variable type inference failed */ | ||||
|     InterruptibleKt$runInterruptible$2(Function0<? extends T> function0, Continuation<? super InterruptibleKt$runInterruptible$2> continuation) { | ||||
|         super(2, continuation); | ||||
|         this.$block = function0; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl | ||||
|     public final Continuation<Unit> create(Object obj, Continuation<?> continuation) { | ||||
|         InterruptibleKt$runInterruptible$2 interruptibleKt$runInterruptible$2 = new InterruptibleKt$runInterruptible$2(this.$block, continuation); | ||||
|         interruptibleKt$runInterruptible$2.L$0 = obj; | ||||
|         return interruptibleKt$runInterruptible$2; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.jvm.functions.Function2 | ||||
|     public final Object invoke(CoroutineScope coroutineScope, Continuation<? super T> continuation) { | ||||
|         return ((InterruptibleKt$runInterruptible$2) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl | ||||
|     public final Object invokeSuspend(Object obj) { | ||||
|         Object runInterruptibleInExpectedContext; | ||||
|         IntrinsicsKt.getCOROUTINE_SUSPENDED(); | ||||
|         if (this.label == 0) { | ||||
|             ResultKt.throwOnFailure(obj); | ||||
|             runInterruptibleInExpectedContext = InterruptibleKt.runInterruptibleInExpectedContext(((CoroutineScope) this.L$0).getCoroutineContext(), this.$block); | ||||
|             return runInterruptibleInExpectedContext; | ||||
|         } | ||||
|         throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user