Skip to content

Commit 9885f7d

Browse files
committed
Specify explicit type of IO val
1 parent 3167166 commit 9885f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/kotlinx-coroutines-core/src/CoroutineContext.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public const val IO_PARALLELISM_PROPERTY_NAME = "kotlinx.coroutines.io.paralleli
8181
* "`kotlinx.coroutines.io.parallelism`" ([IO_PARALLELISM_PROPERTY_NAME]) system property.
8282
* It defaults to the limit of 64 threads or the number of cores (whichever is larger).
8383
*/
84-
public val IO by lazy {
84+
public val IO: CoroutineDispatcher by lazy {
8585
BackgroundDispatcher.blocking(systemProp(IO_PARALLELISM_PROPERTY_NAME, 64.coerceAtLeast(AVAILABLE_PROCESSORS)))
8686
}
8787

0 commit comments

Comments
 (0)