diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1cd261f..3ca87b1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,10 @@
# CHANGELOG
+## Version 0.10.1 (2017-06-12)
+
+- [kotlinx.coroutines 0.23.1](https://github.com/Kotlin/kotlinx.coroutines/releases/)
+- Compiled against Kotlin 1.2.41
+
## Version 0.10.0 (2017-04-26)
- [Retrofit 2.4.0](https://github.com/square/retrofit/blob/parent-2.4.0/CHANGELOG.md#version-240-2018-03-14)
diff --git a/README.md b/README.md
index 7bb3fc2..110ed48 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ Download the [JAR](https://bintray.com/gildor/maven/kotlin-coroutines-retrofit#f
Gradle:
```groovy
-compile 'ru.gildor.coroutines:kotlin-coroutines-retrofit:0.10.0'
+compile 'ru.gildor.coroutines:kotlin-coroutines-retrofit:0.10.1'
```
Maven:
@@ -23,7 +23,7 @@ Maven:
ru.gildor.coroutines
kotlin-coroutines-retrofit
- 0.10.0
+ 0.10.1
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 4a5cc23..8df6a81 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -12,7 +12,7 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformJvmPlugin
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
plugins {
- id("org.jetbrains.kotlin.jvm") version "1.2.40"
+ id("org.jetbrains.kotlin.jvm") version "1.2.41"
id("com.jfrog.bintray") version "1.7.3"
jacoco
`maven-publish`
@@ -20,7 +20,7 @@ plugins {
}
group = "ru.gildor.coroutines"
-version = "0.10.0"
+version = "0.10.1"
description = "Provides Kotlin Coroutines suspendable await() extensions for Retrofit Call"
repositories {
@@ -34,7 +34,7 @@ java {
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib")
- compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.5")
+ compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.23.1")
compile("com.squareup.retrofit2:retrofit:2.4.0")
testCompile("junit:junit:4.12")
}
diff --git a/src/main/kotlin/ru/gildor/coroutines/retrofit/CallAwait.kt b/src/main/kotlin/ru/gildor/coroutines/retrofit/CallAwait.kt
index f216846..0f747fb 100644
--- a/src/main/kotlin/ru/gildor/coroutines/retrofit/CallAwait.kt
+++ b/src/main/kotlin/ru/gildor/coroutines/retrofit/CallAwait.kt
@@ -100,7 +100,7 @@ public suspend fun Call.awaitResult(): Result {
}
private fun Call<*>.registerOnCompletion(continuation: CancellableContinuation<*>) {
- continuation.invokeOnCompletion {
+ continuation.invokeOnCancellation {
if (continuation.isCancelled)
try {
cancel()
diff --git a/src/test/kotlin/ru/gildor/coroutines/retrofit/CallAwaitTest.kt b/src/test/kotlin/ru/gildor/coroutines/retrofit/CallAwaitTest.kt
index bfd83d1..d78a527 100644
--- a/src/test/kotlin/ru/gildor/coroutines/retrofit/CallAwaitTest.kt
+++ b/src/test/kotlin/ru/gildor/coroutines/retrofit/CallAwaitTest.kt
@@ -11,6 +11,7 @@ import retrofit2.HttpException
import ru.gildor.coroutines.retrofit.util.MockedCall
import ru.gildor.coroutines.retrofit.util.NullBodyCall
import ru.gildor.coroutines.retrofit.util.errorResponse
+import kotlin.coroutines.experimental.coroutineContext
private const val DONE = "Done!"