25 lines
860 B
Java
25 lines
860 B
Java
package kotlinx.coroutines.android;
|
|
|
|
import android.os.Looper;
|
|
import java.util.List;
|
|
import kotlinx.coroutines.internal.MainDispatcherFactory;
|
|
import s.a.y1.a;
|
|
import s.a.y1.c;
|
|
/* compiled from: HandlerDispatcher.kt */
|
|
public final class AndroidDispatcherFactory implements MainDispatcherFactory {
|
|
@Override // kotlinx.coroutines.internal.MainDispatcherFactory
|
|
public a createDispatcher(List<? extends MainDispatcherFactory> list) {
|
|
return new a(c.a(Looper.getMainLooper(), true), null, false);
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.internal.MainDispatcherFactory
|
|
public int getLoadPriority() {
|
|
return 1073741823;
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.internal.MainDispatcherFactory
|
|
public String hintOnError() {
|
|
return "For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used";
|
|
}
|
|
}
|