Files
rr3-apk/decompiled/sources/androidx/lifecycle/PausingDispatcher.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

29 lines
1.0 KiB
Java

package androidx.lifecycle;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.CoroutineDispatcher;
import kotlinx.coroutines.Dispatchers;
/* loaded from: classes.dex */
public final class PausingDispatcher extends CoroutineDispatcher {
public final DispatchQueue dispatchQueue = new DispatchQueue();
@Override // kotlinx.coroutines.CoroutineDispatcher
public boolean isDispatchNeeded(CoroutineContext context) {
Intrinsics.checkNotNullParameter(context, "context");
if (Dispatchers.getMain().getImmediate().isDispatchNeeded(context)) {
return true;
}
return !this.dispatchQueue.canRun();
}
@Override // kotlinx.coroutines.CoroutineDispatcher
/* renamed from: dispatch */
public void mo4148dispatch(CoroutineContext context, Runnable block) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(block, "block");
this.dispatchQueue.dispatchAndEnqueue(context, block);
}
}