Jamie Craane
09/30/2020, 9:30 AMJohn O'Reilly
09/30/2020, 9:36 AMconst val kotlinCoroutines = "1.3.9-native-mt"
const val ktor = "1.4.0"
const val kotlinxSerialization = "1.0.0-RC"
Jamie Craane
09/30/2020, 10:16 AMval ktorVersion = "1.4.0"
val serializationVersion = "1.0.0-RC"
val coroutinesVersion = "1.3.9-native-mt"
I still get the same exception. However by using the following versions everything works:
val ktorVersion = "1.3.2-1.4.0-rc"
val serializationVersion = "1.0.0-RC"
val coroutinesVersion = "1.3.9"
I will add this information to the ticket you created.ribesg
09/30/2020, 10:46 AMCoroutineExceptionHandler
(and everything it references) gets frozen if the coroutine it’s attached to does a Ktor Client call https://youtrack.jetbrains.com/issue/KTOR-1073ribesg
09/30/2020, 10:47 AMCEH
. Note that referencing a property named, for example, data
will reference this.data
and freeze this
.ribesg
09/30/2020, 10:48 AMCEH
usages with try-catch
inside the suspend lambda.John O'Reilly
09/30/2020, 11:08 AMJamie Craane
09/30/2020, 11:15 AMsourceSets["iosX64Main"].dependencies {
implementation("io.ktor:ktor-client-ios-iosx64:$ktorVersion")
implementation("com.soywiz.korlibs.klock:klock-iosx64:$klockVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion") {
version {
strictly(coroutinesVersion)
}
}
}
I also did look at the https://github.com/touchlab/KaMPKit example regarding the dependencies.kpgalligan
09/30/2020, 5:22 PMkpgalligan
09/30/2020, 5:24 PMJamie Craane
09/30/2020, 5:40 PMJamie Craane
10/01/2020, 2:22 PM