Skip to content

Commit 20f9f3f

Browse files
committed
Version 0.21.1
1 parent c1c0487 commit 20f9f3f

File tree

7 files changed

+19
-8
lines changed

7 files changed

+19
-8
lines changed

CHANGES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Change log for kotlinx.coroutines
22

3+
## Version 0.21.1
4+
5+
* Improved performance of coroutine dispatching (`DispatchTask` instance is no longer allocated).
6+
* Fixed `Job.cancel` and `CompletableDeferred.complete` to support cancelling/completing states and properly wait for their children to complete on join/await (see #199).
7+
* Fixed a bug in binary heap implementation (used internally by `delay`) which could have resulted in wrong delay time in rare circumstances.
8+
* Coroutines library for [Kotlin/JS](js/README.md):
9+
* `Promise.asDeferred` immediately installs handlers to avoid "Unhandled promise rejection" warning.
10+
* Use `window.setMessage` instead of `setTimeout` for coroutines inside the browser to avoid timeout throttling (see #194).
11+
* Use custom queue in `Window.awaitAnimationFrame` to align all animations and reduce overhead.
12+
* Introduced `Window.asCoroutineDispatcher()` extension function.
13+
314
## Version 0.21
415

516
* Migrated to Kotlin 1.2.10.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![official JetBrains project](http://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
44
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
5-
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=0.21) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.21)
5+
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=0.21.1) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.21.1)
66

77
Library support for Kotlin coroutines in
88
[Kotlin/JVM](core/README.md) and
@@ -64,7 +64,7 @@ Add dependencies (you can also add other modules that you need):
6464
<dependency>
6565
<groupId>org.jetbrains.kotlinx</groupId>
6666
<artifactId>kotlinx-coroutines-core</artifactId>
67-
<version>0.21</version>
67+
<version>0.21.1</version>
6868
</dependency>
6969
```
7070

@@ -81,7 +81,7 @@ And make sure that you use the latest Kotlin version:
8181
Add dependencies (you can also add other modules that you need):
8282

8383
```groovy
84-
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.21'
84+
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.21.1'
8585
```
8686

8787
And make sure that you use the latest Kotlin version:

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 0.21-SNAPSHOT
1+
version = 0.21.1-SNAPSHOT
22

33
kotlin_version = 1.2.10
44
junit_version = 4.12

ui/coroutines-guide-ui.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Add dependencies on `kotlinx-coroutines-android` module to the `dependencies { .
173173
`app/build.gradle` file:
174174

175175
```groovy
176-
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.21"
176+
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.21.1"
177177
```
178178

179179
Coroutines are experimental feature in Kotlin.

ui/kotlinx-coroutines-android/animation-app/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ org.gradle.jvmargs=-Xmx1536m
1919
kotlin.coroutines=enable
2020

2121
kotlin_version = 1.2.10
22-
coroutines_version = 0.21
22+
coroutines_version = 0.21.1
2323

ui/kotlinx-coroutines-android/example-app/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ dependencies {
3131
compile 'com.android.support:design:25.4.0'
3232
testCompile 'junit:junit:4.12'
3333
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
34-
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.21"
34+
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.21.1"
3535
}

ui/kotlinx-coroutines-android/example-app/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ org.gradle.jvmargs=-Xmx1536m
1919
kotlin.coroutines=enable
2020

2121
kotlin_version = 1.2.10
22-
coroutines_version = 0.21
22+
coroutines_version = 0.21.1
2323

0 commit comments

Comments
 (0)