Skip to content

Commit bab2555

Browse files
committed
Version 0.4-beta and its change log
1 parent 92ef15b commit bab2555

File tree

10 files changed

+33
-14
lines changed

10 files changed

+33
-14
lines changed

CHANGES.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# kotlinx.coroutines change log
2+
3+
## Version 0.4-beta
4+
5+
* Switched to Kotlin version 1.1.0-beta-18 (republished version).
6+
* `CoroutineDispatcher` methods now have `context` parameter.
7+
* Introduced `CancellableContinuation.isCancelled`
8+
* Introduced `EventLoop` dispatcher and made it a default for `runBlocking { ... }`
9+
* Introduced `CoroutineScope` interface with `isActive` and `context` properties;
10+
standard coroutine builders include it as receiver for convenience.
11+
* Introduced `Executor.toCoroutineDispatcher()` extension.
12+
* Delay scheduler thread is not daemon anymore, but times out automatically.
13+
* Debugging facilities in `newCoroutineContext` can be explicitly disabled with `-Dkotlinx.coroutines.debug=off`.
14+
* xxx-test files are renamed to xxx-example for clarity.
15+
* Fixed NPE in Job implementation when starting coroutine with already cancelled parent job.
16+
* Support cancellation in `kotlinx-coroutines-nio` module

README.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ Library support for Kotlin coroutines. This is a companion version for Kotlin 1.
44
It contains worked-out implementation of coroutine builders, suspending functions, and contexts that are
55
used as examples in
66
[Kotlin coroutines design document](https://github.com/Kotlin/kotlin-coroutines/blob/master/kotlin-coroutines-informal.md)
7+
8+
See [change log](CHANGES.md) for a summary of changes between releases.
79

810
It consists of the following modules:
911

1012
* `kotlinx-coroutines-core` module with core primitives to work with coroutines. It is designed to work on any JDK6+ and Android
1113
and contains the following main pieces:
1214
* `launch(context) { ... }` to start a coroutine in the given context.
1315
* `run(context) { ... }` to switch to a different context inside a coroutine.
14-
* `runBlocking(context) { ... }` to use asynchronous Kotlin APIs from a thread-blocking code.
16+
* `runBlocking { ... }` to use asynchronous Kotlin APIs from a thread-blocking code.
1517
* `defer(context) { ... }` to get a deferred result of coroutine execution in a non-blocking way.
1618
* `delay(...)` for a non-blocking sleep in coroutines.
17-
* `Here` and `CommonPool` contexts.
18-
* `newSingleThreadContext(...)` and `newFixedThreadPoolContext(...)` functions.
19+
* `Here` and `CommonPool` contexts, `context` or a parent coroutine.
20+
* `newSingleThreadContext(...)` and `newFixedThreadPoolContext(...)` functions,
21+
`Executor.toCoroutineDispatcher()` extension.
1922
* Cancellation support with `Job` interface and `suspendCancellableCoroutine` helper function.
2023
* Debugging facilities for coroutines (run JVM with `-ea` or `-Dkotlinx.coroutines.debug` options) and
2124
`newCoroutineContext(context)` function to write user-defined coroutine builders that work with these
@@ -25,7 +28,7 @@ and contains the following main pieces:
2528
* `future { ... }` coroutine builder that returns `CompletableFuture` and works in `CommonPool` context by default.
2629
* `.await()` suspending function for `CompletableFuture`.
2730

28-
* `kotlinx-coroutines-nio` module with extensions for asynchronous IO on JDK7+ (does not support cancellation yet).
31+
* `kotlinx-coroutines-nio` module with extensions for asynchronous IO on JDK7+.
2932

3033
* `kotlinx-coroutines-swing` module with `Swing` context for Swing UI applications.
3134

@@ -66,7 +69,7 @@ Add dependencies (you can also add other modules that you need):
6669
<dependency>
6770
<groupId>org.jetbrains.kotlinx</groupId>
6871
<artifactId>kotlinx-coroutines-core</artifactId>
69-
<version>0.3-beta</version>
72+
<version>0.4-beta</version>
7073
</dependency>
7174
```
7275

@@ -93,7 +96,7 @@ repositories {
9396
Add dependencies (you can also add other modules that you need):
9497

9598
```groovy
96-
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.3-beta'
99+
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.4-beta'
97100
```
98101

99102
And make sure that you use the right Kotlin version:

kotlinx-coroutines-core/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.jetbrains.kotlinx</groupId>
88
<artifactId>kotlinx-coroutines</artifactId>
9-
<version>0.3-beta-SNAPSHOT</version>
9+
<version>0.4-beta-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>kotlinx-coroutines-core</artifactId>

kotlinx-coroutines-javafx/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.jetbrains.kotlinx</groupId>
88
<artifactId>kotlinx-coroutines</artifactId>
9-
<version>0.3-beta-SNAPSHOT</version>
9+
<version>0.4-beta-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>kotlinx-coroutines-javafx</artifactId>

kotlinx-coroutines-jdk8/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.jetbrains.kotlinx</groupId>
88
<artifactId>kotlinx-coroutines</artifactId>
9-
<version>0.3-beta-SNAPSHOT</version>
9+
<version>0.4-beta-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>kotlinx-coroutines-jdk8</artifactId>

kotlinx-coroutines-nio/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.jetbrains.kotlinx</groupId>
88
<artifactId>kotlinx-coroutines</artifactId>
9-
<version>0.3-beta-SNAPSHOT</version>
9+
<version>0.4-beta-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>kotlinx-coroutines-nio</artifactId>

kotlinx-coroutines-rx-example/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.jetbrains.kotlinx</groupId>
88
<artifactId>kotlinx-coroutines</artifactId>
9-
<version>0.3-beta-SNAPSHOT</version>
9+
<version>0.4-beta-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>kotlinx-coroutines-rx-example</artifactId>

kotlinx-coroutines-rx/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.jetbrains.kotlinx</groupId>
88
<artifactId>kotlinx-coroutines</artifactId>
9-
<version>0.3-beta-SNAPSHOT</version>
9+
<version>0.4-beta-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>kotlinx-coroutines-rx</artifactId>

kotlinx-coroutines-swing/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.jetbrains.kotlinx</groupId>
88
<artifactId>kotlinx-coroutines</artifactId>
9-
<version>0.3-beta-SNAPSHOT</version>
9+
<version>0.4-beta-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>kotlinx-coroutines-swing</artifactId>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>org.jetbrains.kotlinx</groupId>
99
<artifactId>kotlinx-coroutines</artifactId>
10-
<version>0.3-beta-SNAPSHOT</version>
10+
<version>0.4-beta-SNAPSHOT</version>
1111
<packaging>pom</packaging>
1212

1313
<name>Kotlin coroutines libraries</name>

0 commit comments

Comments
 (0)