We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3167166 commit 9885f7dCopy full SHA for 9885f7d
core/kotlinx-coroutines-core/src/CoroutineContext.kt
@@ -81,7 +81,7 @@ public const val IO_PARALLELISM_PROPERTY_NAME = "kotlinx.coroutines.io.paralleli
81
* "`kotlinx.coroutines.io.parallelism`" ([IO_PARALLELISM_PROPERTY_NAME]) system property.
82
* It defaults to the limit of 64 threads or the number of cores (whichever is larger).
83
*/
84
-public val IO by lazy {
+public val IO: CoroutineDispatcher by lazy {
85
BackgroundDispatcher.blocking(systemProp(IO_PARALLELISM_PROPERTY_NAME, 64.coerceAtLeast(AVAILABLE_PROCESSORS)))
86
}
87
0 commit comments