Skip to content

Commit a460256

Browse files
committed
Version 1.2.0-alpha
1 parent 0d69e13 commit a460256

File tree

9 files changed

+43
-16
lines changed

9 files changed

+43
-16
lines changed

CHANGES.md

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

3+
## Version 1.2.0-alpha
4+
5+
* Major debug agent improvements. Real stacktraces are merged with coroutine stacktraces for running coroutines, merging heuristic is improved, API is cleaned up and is on its road to stabilization (#997).
6+
* `CoroutineTimeout` rule or JUnit4 is introduced to simplify coroutines debugging (#938).
7+
* Stacktrace recovery improvements. Exceptions with custom properties are no longer copied, `CopyableThrowable` interface is introduced, machinery is [documented](https://github.com/Kotlin/kotlinx.coroutines/blob/develop/docs/debugging.md) (#921, #950).
8+
* `Dispatchers.Unconfined`, `MainCoroutineDispatcher.immediate`, `MainScope` and `CoroutineScope.cancel` are promoted to stable API (#972).
9+
* `CompletableJob` is introduced (#971).
10+
* Structured concurrency is integrated into futures and listenable futures (#1008).
11+
* `ensurePresent` and `isPresent` extensions for `ThreadLocal` (#1028).
12+
* `ensureActive` extensions for `CoroutineContext`, `CoroutineScope` and `Job` (#963).
13+
* `SendChannel.isFull` and `ReceiveChannel.isEmpty` are deprecated (#1053).
14+
* `withContext` checks cancellation on entering (#962).
15+
* Operator `invoke` on `CoroutineDispatcher` (#428).
16+
* Java 8 extensions for `delay` and `withTimeout` now properly handle too large values (#428).
17+
* Performance of `Dispatcher.Main` initialization is significantly improved (#878).
18+
* A global exception handler for fatal exceptions in coroutines is introduced (#808, #773).
19+
* Major improvements in cancellation machinery and exceptions delivery consistency. Cancel with custom exception is completely removed.
20+
* Kotlin version is updated to 1.3.21.
21+
* Do not use private API on newer Androids to handle exceptions (#822).
22+
23+
Bug fixes:
24+
* Proper `select` support in debug agent (#931).
25+
* Proper `supervisorScope` support in debug agent (#915).
26+
* Throwing `initCause` does not longer trigger an internal error (#933).
27+
* Lazy actors are stared when calling `close` in order to cleanup its resources (#939).
28+
* Minor bugs in reactive integrations are fixed (#1008).
29+
* Experimental scheduler shutdown sequence is fixed (#990).
30+
331
## Version 1.1.1
432

533
* Maintenance release, no changes in the codebase

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![official JetBrains project](https://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)](https://www.apache.org/licenses/LICENSE-2.0)
5-
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=1.1.1) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/1.1.1)
5+
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=1.2.0-alpha) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/1.2.0-alpha)
66

77
Library support for Kotlin coroutines with [multiplatform](#multiplatform) support.
88
This is a companion version for Kotlin `1.3.21` release.
@@ -75,7 +75,7 @@ Add dependencies (you can also add other modules that you need):
7575
<dependency>
7676
<groupId>org.jetbrains.kotlinx</groupId>
7777
<artifactId>kotlinx-coroutines-core</artifactId>
78-
<version>1.1.1</version>
78+
<version>1.2.0-alpha</version>
7979
</dependency>
8080
```
8181

@@ -93,7 +93,7 @@ Add dependencies (you can also add other modules that you need):
9393

9494
```groovy
9595
dependencies {
96-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1'
96+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.0-alpha'
9797
}
9898
```
9999

@@ -119,7 +119,7 @@ Add dependencies (you can also add other modules that you need):
119119

120120
```groovy
121121
dependencies {
122-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1")
122+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.0-alpha")
123123
}
124124
```
125125

@@ -147,7 +147,7 @@ Add [`kotlinx-coroutines-android`](ui/kotlinx-coroutines-android)
147147
module as dependency when using `kotlinx.coroutines` on Android:
148148

149149
```groovy
150-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.1'
150+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.0-alpha'
151151
```
152152
This gives you access to Android [Dispatchers.Main](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-android/kotlinx.coroutines.android/kotlinx.coroutines.-dispatchers/index.html)
153153
coroutine dispatcher and also makes sure that in case of crashed coroutine with unhandled exception this

bump-version.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ update_version() {
1616
}
1717

1818
update_version "README.md"
19-
update_version "core/kotlinx-coroutines-debug/README.md"
20-
update_version "core/kotlinx-coroutines-test/README.md"
19+
update_version "kotlinx-coroutines-core/README.md"
20+
update_version "kotlinx-coroutines-debug/README.md"
21+
update_version "kotlinx-coroutines-test/README.md"
2122
update_version "ui/coroutines-guide-ui.md"
22-
update_version "ui/coroutines-guide-ui.md"
23-
update_version "native/README.md"
2423
update_version "ui/kotlinx-coroutines-android/example-app/gradle.properties"
2524
update_version "ui/kotlinx-coroutines-android/animation-app/gradle.properties"
2625
update_version "gradle.properties"

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Kotlin
2-
version=1.1.1-SNAPSHOT
2+
version=1.2.0-alpha-SNAPSHOT
33
group=org.jetbrains.kotlinx
44
kotlin_version=1.3.21
55

kotlinx-coroutines-debug/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ of coroutines hierarchy referenced by a [Job] or [CoroutineScope] instances usin
1818
Add `kotlinx-coroutines-debug` to your project test dependencies:
1919
```
2020
dependencies {
21-
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.1.1'
21+
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.2.0-alpha'
2222
}
2323
```
2424

@@ -57,7 +57,7 @@ stacktraces will be dumped to the console.
5757
### Using as JVM agent
5858

5959
It is possible to use this module as a standalone JVM agent to enable debug probes on the application startup.
60-
You can run your application with an additional argument: `-javaagent:kotlinx-coroutines-debug-1.1.1.jar`.
60+
You can run your application with an additional argument: `-javaagent:kotlinx-coroutines-debug-1.2.0-alpha.jar`.
6161
Additionally, on Linux and Mac OS X you can use `kill -5 $pid` command in order to force your application to print all alive coroutines.
6262

6363

kotlinx-coroutines-test/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Test utilities for `kotlinx.coroutines`. Provides `Dispatchers.setMain` to overr
77
Add `kotlinx-coroutines-test` to your project test dependencies:
88
```
99
dependencies {
10-
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.1.1'
10+
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.2.0-alpha'
1111
}
1212
```
1313

ui/coroutines-guide-ui.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Add dependencies on `kotlinx-coroutines-android` module to the `dependencies { .
165165
`app/build.gradle` file:
166166

167167
```groovy
168-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.1"
168+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.0-alpha"
169169
```
170170

171171
You can clone [kotlinx.coroutines](https://github.com/Kotlin/kotlinx.coroutines) project from GitHub onto your

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

+1-1
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.3.21
22-
coroutines_version=1.1.1
22+
coroutines_version=1.2.0-alpha
2323

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

+1-1
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.3.21
22-
coroutines_version=1.1.1
22+
coroutines_version=1.2.0-alpha
2323

0 commit comments

Comments
 (0)