package kotlinx.coroutines.scheduling; import java.util.concurrent.Executor; import kotlin.coroutines.CoroutineContext; import kotlin.coroutines.EmptyCoroutineContext; import kotlin.ranges.RangesKt___RangesKt; import kotlinx.coroutines.CoroutineDispatcher; import kotlinx.coroutines.ExecutorCoroutineDispatcher; import kotlinx.coroutines.internal.SystemPropsKt; import kotlinx.coroutines.internal.SystemPropsKt__SystemProps_commonKt; /* loaded from: classes5.dex */ public final class DefaultIoScheduler extends ExecutorCoroutineDispatcher implements Executor { public static final DefaultIoScheduler INSTANCE = new DefaultIoScheduler(); /* renamed from: default, reason: not valid java name */ public static final CoroutineDispatcher f3084default; @Override // kotlinx.coroutines.ExecutorCoroutineDispatcher public Executor getExecutor() { return this; } @Override // kotlinx.coroutines.CoroutineDispatcher public String toString() { return "Dispatchers.IO"; } static { int coerceAtLeast; int systemProp$default; UnlimitedIoScheduler unlimitedIoScheduler = UnlimitedIoScheduler.INSTANCE; coerceAtLeast = RangesKt___RangesKt.coerceAtLeast(64, SystemPropsKt.getAVAILABLE_PROCESSORS()); systemProp$default = SystemPropsKt__SystemProps_commonKt.systemProp$default("kotlinx.coroutines.io.parallelism", coerceAtLeast, 0, 0, 12, (Object) null); f3084default = unlimitedIoScheduler.limitedParallelism(systemProp$default); } @Override // java.util.concurrent.Executor public void execute(Runnable runnable) { mo4148dispatch(EmptyCoroutineContext.INSTANCE, runnable); } @Override // kotlinx.coroutines.CoroutineDispatcher public CoroutineDispatcher limitedParallelism(int i) { return UnlimitedIoScheduler.INSTANCE.limitedParallelism(i); } @Override // kotlinx.coroutines.CoroutineDispatcher /* renamed from: dispatch */ public void mo4148dispatch(CoroutineContext coroutineContext, Runnable runnable) { f3084default.mo4148dispatch(coroutineContext, runnable); } @Override // kotlinx.coroutines.CoroutineDispatcher public void dispatchYield(CoroutineContext coroutineContext, Runnable runnable) { f3084default.dispatchYield(coroutineContext, runnable); } @Override // java.io.Closeable, java.lang.AutoCloseable public void close() { throw new IllegalStateException("Cannot be invoked on Dispatchers.IO".toString()); } }