Files
rr3-apk/decompiled/sources/androidx/lifecycle/PausingDispatcherKt.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

39 lines
1.9 KiB
Java

package androidx.lifecycle;
import androidx.lifecycle.Lifecycle;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.Dispatchers;
/* loaded from: classes.dex */
public final class PausingDispatcherKt {
public static final <T> Object whenCreated(LifecycleOwner lifecycleOwner, Function2 function2, Continuation continuation) {
return whenCreated(lifecycleOwner.getLifecycle(), function2, continuation);
}
public static final <T> Object whenCreated(Lifecycle lifecycle, Function2 function2, Continuation continuation) {
return whenStateAtLeast(lifecycle, Lifecycle.State.CREATED, function2, continuation);
}
public static final <T> Object whenStarted(LifecycleOwner lifecycleOwner, Function2 function2, Continuation continuation) {
return whenStarted(lifecycleOwner.getLifecycle(), function2, continuation);
}
public static final <T> Object whenStarted(Lifecycle lifecycle, Function2 function2, Continuation continuation) {
return whenStateAtLeast(lifecycle, Lifecycle.State.STARTED, function2, continuation);
}
public static final <T> Object whenResumed(LifecycleOwner lifecycleOwner, Function2 function2, Continuation continuation) {
return whenResumed(lifecycleOwner.getLifecycle(), function2, continuation);
}
public static final <T> Object whenResumed(Lifecycle lifecycle, Function2 function2, Continuation continuation) {
return whenStateAtLeast(lifecycle, Lifecycle.State.RESUMED, function2, continuation);
}
public static final <T> Object whenStateAtLeast(Lifecycle lifecycle, Lifecycle.State state, Function2 function2, Continuation continuation) {
return BuildersKt.withContext(Dispatchers.getMain().getImmediate(), new PausingDispatcherKt$whenStateAtLeast$2(lifecycle, state, function2, null), continuation);
}
}