Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aleksandarzekovic/003bd7e008fc376e5ba445bcb307392a to your computer and use it in GitHub Desktop.
Save aleksandarzekovic/003bd7e008fc376e5ba445bcb307392a to your computer and use it in GitHub Desktop.
BuildersKt.launch$default((CoroutineScope)LifecycleOwnerKt.getLifecycleScope(this), (CoroutineContext)null, (CoroutineStart)null, (Function2)(new Function2((Continuation)null) {
int label;
@Nullable
public final Object invokeSuspend(@NotNull Object $result) {
Object var10000;
label17: {
Object var5 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
MainActivity var6;
switch(this.label) {
case 0:
ResultKt.throwOnFailure($result);
var6 = MainActivity.this;
this.label = 1;
var10000 = var6.getRandomNum(this);
if (var10000 == var5) {
return var5;
}
break;
case 1:
ResultKt.throwOnFailure($result);
var10000 = $result;
break;
case 2:
ResultKt.throwOnFailure($result);
var10000 = $result;
break label17;
default:
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
int randomNum = ((Number)var10000).intValue();
var6 = MainActivity.this;
double var10001 = (double)randomNum;
this.label = 2;
var10000 = var6.getSqrt(var10001, this);
if (var10000 == var5) {
return var5;
}
}
double sqrt = ((Number)var10000).doubleValue();
MainActivity.this.log(String.valueOf(sqrt));
return Unit.INSTANCE;
}
@NotNull
public final Continuation create(@Nullable Object value, @NotNull Continuation completion) {
Intrinsics.checkNotNullParameter(completion, "completion");
Function2 var3 = new <anonymous constructor>(completion);
return var3;
}
public final Object invoke(Object var1, Object var2) {
return ((<undefinedtype>)this.create(var1, (Continuation)var2)).invokeSuspend(Unit.INSTANCE);
}
}), 3, (Object)null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment