Skip to content

Commit 9964b3d

Browse files
committed
Version 0.24.0
1 parent 7050899 commit 9964b3d

File tree

7 files changed

+37
-9
lines changed

7 files changed

+37
-9
lines changed

CHANGES.md

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

3+
## Version 0.24.0
4+
5+
* Fully multiplatform release with Kotlin/Native support (see #246):
6+
* Only single-threaded operation inside `runBlocking` event loop is supported at this moment.
7+
* See details on setting up build environment [here](native/README.md).
8+
* Improved channels:
9+
* Introduced `SendChannel.invokeOnClose` (see #341).
10+
* Make `close`, `cancel`, `isClosedForSend`, `isClosedForReceive` and `offer` linearizable with other operations (see #359).
11+
* Fixed bug when send operation can be stuck in channel forever.
12+
* Fixed broadcast channels on JS (see #412).
13+
* Provides `BlockingChecker` mechanism which checks current context (see #227).
14+
* Attempts to use `runBlocking` from any supported UI thread (Android, JavaFx, Swing) will result in exception.
15+
* Android:
16+
* Worked around Android bugs with zero-size ForkJoinPool initialization (see #432, #288).
17+
* Introduced `UI.immediate` extension as performance-optimization to immediately execute tasks which are invoked from the UI thread (see #381).
18+
* Use it only when absolutely needed. It breaks asynchrony of coroutines and may lead to surprising and unexpected results.
19+
* Fixed materialization of a `cause` exception for `Job` onCancelling handlers (see #436).
20+
* Fixed JavaFx `UI` on Java 9 (see #443).
21+
* Fixed and documented the order between cancellation handlers and continuation resume (see #415).
22+
* Fixed resumption of cancelled continuation (see #450).
23+
* Includes multiple fixes to documentation contributed by @paolop, @SahilLone, @rocketraman, @bdavisx, @mtopolnik, @Groostav.
24+
* Experimental coroutines scheduler preview (JVM only):
25+
* Written from scratch and optimized for communicating coroutines.
26+
* Performs significantly better than ForkJoinPool on coroutine benchmarks and for connected applications with [ktor](http://ktor.io).
27+
* Supports automatic creating of new threads for blocking operations running on the same thread pool (with an eye on solving #79), but there is no stable public API for it just yet.
28+
* For preview, run JVM with `-Dkotlinx.coroutines.scheduler` option. In this case `DefaultDispatcher` is set to new experimental scheduler instead of FJP-based `CommonPool`.
29+
* Submit your feedback to issue #261.
30+
331
## Version 0.23.4
432

533
* Recompiled with Kotlin 1.2.51 to solve broken metadata problem (see [KT-24944](https://youtrack.jetbrains.com/issue/KT-24944)).

README.md

Lines changed: 4 additions & 4 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.23.4) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.23.4)
5+
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=0.24.0) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.24.0)
66

77
Library support for Kotlin coroutines with [multiplatform](#multiplatform) support.
88
This is a companion version for Kotlin 1.2.51 release.
@@ -63,7 +63,7 @@ Add dependencies (you can also add other modules that you need):
6363
<dependency>
6464
<groupId>org.jetbrains.kotlinx</groupId>
6565
<artifactId>kotlinx-coroutines-core</artifactId>
66-
<version>0.23.4</version>
66+
<version>0.24.0</version>
6767
</dependency>
6868
```
6969

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

8282
```groovy
83-
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.23.4'
83+
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.24.0'
8484
```
8585

8686
And make sure that you use the latest Kotlin version:
@@ -113,7 +113,7 @@ Add [`kotlinx-coroutines-android`](ui/kotlinx-coroutines-android)
113113
module as dependency when using `kotlinx.coroutines` on Android:
114114

115115
```groovy
116-
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.23.4'
116+
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.24.0'
117117
```
118118

119119
This gives you access to Android [UI](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-android/kotlinx.coroutines.experimental.android/-u-i.html)

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33
#
44

5-
version = 0.23.4-SNAPSHOT
5+
version = 0.24.0-SNAPSHOT
66
group = org.jetbrains.kotlinx
77

88
kotlin_version = 1.2.51

native/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ repositories {
4242
}
4343
4444
dependencies {
45-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-native:0.23.4'
45+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-native:0.24.0'
4646
}
4747
4848
sourceSets {

ui/coroutines-guide-ui.md

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

163163
```groovy
164-
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.23.4"
164+
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.24.0"
165165
```
166166

167167
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.51
22-
coroutines_version = 0.23.4
22+
coroutines_version = 0.24.0
2323

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.51
22-
coroutines_version = 0.23.4
22+
coroutines_version = 0.24.0
2323

0 commit comments

Comments
 (0)