We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f395d7 commit b142539Copy full SHA for b142539
kotlinx-coroutines-core/jvm/src/scheduling/Dispatcher.kt
@@ -50,7 +50,7 @@ private object UnlimitedIoScheduler : CoroutineDispatcher() {
50
@ExperimentalCoroutinesApi
51
override fun limitedParallelism(parallelism: Int): CoroutineDispatcher {
52
parallelism.checkParallelism()
53
- if (parallelism == Int.MAX_VALUE) return this
+ if (parallelism >= MAX_POOL_SIZE) return this
54
return super.limitedParallelism(parallelism)
55
}
56
0 commit comments