- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
48 lines
1.8 KiB
Java
48 lines
1.8 KiB
Java
package kotlinx.coroutines.internal;
|
|
|
|
import java.util.List;
|
|
import kotlin.KotlinNothingValueException;
|
|
import kotlinx.coroutines.MainCoroutineDispatcher;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public abstract class MainDispatchersKt {
|
|
public static final boolean SUPPORT_MISSING = false;
|
|
|
|
public static final MainCoroutineDispatcher tryCreateDispatcher(MainDispatcherFactory mainDispatcherFactory, List list) {
|
|
try {
|
|
return mainDispatcherFactory.createDispatcher(list);
|
|
} catch (Throwable th) {
|
|
return createMissingDispatcher(th, mainDispatcherFactory.hintOnError());
|
|
}
|
|
}
|
|
|
|
public static final boolean isMissing(MainCoroutineDispatcher mainCoroutineDispatcher) {
|
|
return mainCoroutineDispatcher.getImmediate() instanceof MissingMainCoroutineDispatcher;
|
|
}
|
|
|
|
public static /* synthetic */ MissingMainCoroutineDispatcher createMissingDispatcher$default(Throwable th, String str, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
th = null;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
str = null;
|
|
}
|
|
return createMissingDispatcher(th, str);
|
|
}
|
|
|
|
public static final MissingMainCoroutineDispatcher createMissingDispatcher(Throwable th, String str) {
|
|
if (SUPPORT_MISSING) {
|
|
return new MissingMainCoroutineDispatcher(th, str);
|
|
}
|
|
if (th != null) {
|
|
throw th;
|
|
}
|
|
throwMissingMainDispatcherException();
|
|
throw new KotlinNothingValueException();
|
|
}
|
|
|
|
public static final Void throwMissingMainDispatcherException() {
|
|
throw new IllegalStateException("Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android' and ensure it has the same version as 'kotlinx-coroutines-core'");
|
|
}
|
|
}
|