Skip to content

Commit 5576686

Browse files
committed
Version 0.19.2
1 parent d3d335b commit 5576686

File tree

22 files changed

+45
-23
lines changed

22 files changed

+45
-23
lines changed

CHANGES.md

+22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Change log for kotlinx.coroutines
22

3+
## Version 0.19.2
4+
5+
* Fixed `ArrayBroadcastChannel` receive of stale elements on `openSubscription`.
6+
Only elements that are sent after invocation of `openSubscription` are received now.
7+
* Added a default value for `context` parameter to `rxFlowable` (see #146 by @PhilGlass).
8+
* Exception propagation logic from cancelled coroutines is adjusted (see #152):
9+
* When cancelled coroutine crashes due to some other exception, this other exception becomes the cancellation reason
10+
of the coroutine, while the original cancellation reason is suppressed.
11+
* `UnexpectedCoroutineException` is no longer used to report those cases as is removed.
12+
* This fixes a race between crash of CPU-consuming coroutine and cancellation which resulted in an unhandled exception
13+
and lead to crashes on Android.
14+
* `run` uses cancelling state & propagates exceptions when cancelled (see #147):
15+
* When coroutine that was switched into a different dispatcher using `run` is cancelled, the run invocation does not
16+
complete immediately, but waits until the body completes.
17+
* If the body completes with exception, then this exception is propagated.
18+
* No `Job` in `newSingleThreadContext` and `newFixedThreadPoolContext` anymore (see #149, #151):
19+
* This resolves the common issue of using `run(ctx)` where ctx comes from either `newSingleThreadContext` or
20+
`newFixedThreadPoolContext` invocation. They both used to return a combination of dispatcher + job,
21+
and this job was overriding the parent job, thus preventing propagation of cancellation. Not anymore.
22+
* `ThreadPoolDispatcher` class is now public and is the result type for both functions.
23+
It has the `close` method to release the thread pool.
24+
325
## Version 0.19.1
426

527
* Failed parent Job cancels all children jobs, then waits for them them.

README.md

+3-3
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.19.1) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.19.1)
5+
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=0.19.2) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.19.2)
66

77
Library support for Kotlin coroutines.
88
This is a companion version for Kotlin 1.1.4 release (this is the minimal required Kotlin runtime version).
@@ -51,7 +51,7 @@ Add dependencies (you can also add other modules that you need):
5151
<dependency>
5252
<groupId>org.jetbrains.kotlinx</groupId>
5353
<artifactId>kotlinx-coroutines-core</artifactId>
54-
<version>0.19.1</version>
54+
<version>0.19.2</version>
5555
</dependency>
5656
```
5757

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

7070
```groovy
71-
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.19.1'
71+
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.19.2'
7272
```
7373

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

benchmarks/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<parent>
2525
<groupId>org.jetbrains.kotlinx</groupId>
2626
<artifactId>kotlinx-coroutines</artifactId>
27-
<version>0.19.1-SNAPSHOT</version>
27+
<version>0.19.2-SNAPSHOT</version>
2828
</parent>
2929

3030
<artifactId>benchmarks</artifactId>

core/kotlinx-coroutines-core/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.jetbrains.kotlinx</groupId>
2424
<artifactId>kotlinx-coroutines</artifactId>
25-
<version>0.19.1-SNAPSHOT</version>
25+
<version>0.19.2-SNAPSHOT</version>
2626
<relativePath>../../pom.xml</relativePath>
2727
</parent>
2828

core/kotlinx-coroutines-io/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>kotlinx-coroutines</artifactId>
77
<groupId>org.jetbrains.kotlinx</groupId>
8-
<version>0.19.1-SNAPSHOT</version>
8+
<version>0.19.2-SNAPSHOT</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

integration/kotlinx-coroutines-guava/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>org.jetbrains.kotlinx</groupId>
2323
<artifactId>kotlinx-coroutines</artifactId>
24-
<version>0.19.1-SNAPSHOT</version>
24+
<version>0.19.2-SNAPSHOT</version>
2525
<relativePath>../../pom.xml</relativePath>
2626
</parent>
2727

integration/kotlinx-coroutines-jdk8/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>org.jetbrains.kotlinx</groupId>
2323
<artifactId>kotlinx-coroutines</artifactId>
24-
<version>0.19.1-SNAPSHOT</version>
24+
<version>0.19.2-SNAPSHOT</version>
2525
<relativePath>../../pom.xml</relativePath>
2626
</parent>
2727

integration/kotlinx-coroutines-nio/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.jetbrains.kotlinx</groupId>
2424
<artifactId>kotlinx-coroutines</artifactId>
25-
<version>0.19.1-SNAPSHOT</version>
25+
<version>0.19.2-SNAPSHOT</version>
2626
<relativePath>../../pom.xml</relativePath>
2727
</parent>
2828

integration/kotlinx-coroutines-quasar/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>org.jetbrains.kotlinx</groupId>
2323
<artifactId>kotlinx-coroutines</artifactId>
24-
<version>0.19.1-SNAPSHOT</version>
24+
<version>0.19.2-SNAPSHOT</version>
2525
<relativePath>../../pom.xml</relativePath>
2626
</parent>
2727

knit/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>org.jetbrains.kotlinx</groupId>
2323
<artifactId>kotlinx-coroutines</artifactId>
24-
<version>0.19.1-SNAPSHOT</version>
24+
<version>0.19.2-SNAPSHOT</version>
2525
</parent>
2626

2727
<artifactId>knit</artifactId>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<groupId>org.jetbrains.kotlinx</groupId>
2525
<artifactId>kotlinx-coroutines</artifactId>
26-
<version>0.19.1-SNAPSHOT</version>
26+
<version>0.19.2-SNAPSHOT</version>
2727
<packaging>pom</packaging>
2828

2929
<name>kotlinx-coroutines</name>

reactive/kotlinx-coroutines-reactive/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.jetbrains.kotlinx</groupId>
2424
<artifactId>kotlinx-coroutines</artifactId>
25-
<version>0.19.1-SNAPSHOT</version>
25+
<version>0.19.2-SNAPSHOT</version>
2626
<relativePath>../../pom.xml</relativePath>
2727
</parent>
2828

reactive/kotlinx-coroutines-reactor/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<groupId>org.jetbrains.kotlinx</groupId>
2525
<artifactId>kotlinx-coroutines</artifactId>
26-
<version>0.19.1-SNAPSHOT</version>
26+
<version>0.19.2-SNAPSHOT</version>
2727
<relativePath>../../pom.xml</relativePath>
2828
</parent>
2929

reactive/kotlinx-coroutines-rx-example/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.jetbrains.kotlinx</groupId>
2424
<artifactId>kotlinx-coroutines</artifactId>
25-
<version>0.19.1-SNAPSHOT</version>
25+
<version>0.19.2-SNAPSHOT</version>
2626
<relativePath>../../pom.xml</relativePath>
2727
</parent>
2828

reactive/kotlinx-coroutines-rx1/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.jetbrains.kotlinx</groupId>
2424
<artifactId>kotlinx-coroutines</artifactId>
25-
<version>0.19.1-SNAPSHOT</version>
25+
<version>0.19.2-SNAPSHOT</version>
2626
<relativePath>../../pom.xml</relativePath>
2727
</parent>
2828

reactive/kotlinx-coroutines-rx2/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.jetbrains.kotlinx</groupId>
2424
<artifactId>kotlinx-coroutines</artifactId>
25-
<version>0.19.1-SNAPSHOT</version>
25+
<version>0.19.2-SNAPSHOT</version>
2626
<relativePath>../../pom.xml</relativePath>
2727
</parent>
2828

site/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.jetbrains.kotlinx</groupId>
2424
<artifactId>kotlinx-coroutines</artifactId>
25-
<version>0.19.1-SNAPSHOT</version>
25+
<version>0.19.2-SNAPSHOT</version>
2626
</parent>
2727

2828
<artifactId>kotlinx-coroutines-site</artifactId>

ui/coroutines-guide-ui.md

+1-1
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.19.1"
176+
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.19.2"
177177
```
178178

179179
Coroutines are experimental feature in Kotlin.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies {
3636
compile 'com.android.support:design:25.2.0'
3737
testCompile 'junit:junit:4.12'
3838
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
39-
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.19.1"
39+
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.19.2"
4040
}
4141

4242
kotlin {

ui/kotlinx-coroutines-android/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.jetbrains.kotlinx</groupId>
2424
<artifactId>kotlinx-coroutines</artifactId>
25-
<version>0.19.1-SNAPSHOT</version>
25+
<version>0.19.2-SNAPSHOT</version>
2626
<relativePath>../../pom.xml</relativePath>
2727
</parent>
2828

ui/kotlinx-coroutines-javafx/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.jetbrains.kotlinx</groupId>
2424
<artifactId>kotlinx-coroutines</artifactId>
25-
<version>0.19.1-SNAPSHOT</version>
25+
<version>0.19.2-SNAPSHOT</version>
2626
<relativePath>../../pom.xml</relativePath>
2727
</parent>
2828

ui/kotlinx-coroutines-swing/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.jetbrains.kotlinx</groupId>
2424
<artifactId>kotlinx-coroutines</artifactId>
25-
<version>0.19.1-SNAPSHOT</version>
25+
<version>0.19.2-SNAPSHOT</version>
2626
<relativePath>../../pom.xml</relativePath>
2727
</parent>
2828

0 commit comments

Comments
 (0)