Skip to content

Commit 1478bab

Browse files
committed
Specify explicit type of IO val
1 parent 8694437 commit 1478bab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)