jean
06/02/2022, 3:04 PMimport kotlinx.coroutines.newSingleThreadContext
and import kotlinx.coroutines.runBlocking
even though I added the native-mt
version of coroutines. Am I missing something?
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1-native-mt")
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.1-native-mt")
}
}
jean
06/02/2022, 3:31 PMnewSingleThreadContext
should be accessible since I can see ThreadPoolDispatcher.kt
in my dependencies where newSingleThreadContext
is declared. I don’t understand why the IDE complainsjean
06/02/2022, 3:42 PMjean
06/02/2022, 6:30 PM