Skip to content

Commit d6a5a39

Browse files
committed
Version 1.0.0-RC1
1 parent 5da06ce commit d6a5a39

File tree

7 files changed

+28
-23
lines changed

7 files changed

+28
-23
lines changed

CHANGES.md

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

3+
## Version 1.0.0-RC1
4+
5+
* Coroutines API is updated to Kotlin 1.3.
6+
* Deprecated API is removed or marked as `internal`.
7+
* Experimental and internal coroutine API is marked with corresponding `kotlin.experimental.Experimental` annotation. If you are using `@ExperimentalCoroutinesApi` or `@InternalCoroutinesApi` you should explicitly opt-in, otherwise compilation warning (or error) will be produced.
8+
* `Unconfined` dispatcher (and all dispatchers which support immediate invocation) forms event-loop on top of current thread, thus preventing all `StackOverflowError`s. `Unconfined` dispatcher is now much safer for the general use and may leave its experimental status soon (#704).
9+
* Significantly improved performance of suspending hot loops in `kotlinx.coroutines` (#537).
10+
* Proguard rules are embedded into coroutines JAR to assist jettifier (#657)
11+
* Fixed bug in shutdown sequence of `runBlocking` (#692).
12+
* `ReceiveChannel.receiveOrNull` is marked as obsolete and deprecated.
13+
* `Job.cancel(cause)` and `ReceiveChannel.cancel(cause)` are deprecated, `cancel()` returns `Unit` (#713).
14+
315
## Version 0.30.2
416
* `Dispatchers.Main` is instantiated lazily (see #658 and #665).
517
* Blocking coroutine dispatcher views are now shutdown properly (#678).

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
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.30.2) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.30.2)
5+
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=1.0.0-RC1) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/1.0.0-RC1)
66

77
Library support for Kotlin coroutines with [multiplatform](#multiplatform) support.
8-
This is a companion version for Kotlin 1.3.0-rc-146 release.
8+
This is a companion version for Kotlin `1.3.0-rc-146` release.
99

10-
**NOTE**: This is the _last_ experimental feature release.
10+
**NOTE**: `0.30.2` was the last release with Kotlin 1.2 and experimental coroutines.
1111
See [COMPATIBILITY.md](COMPATIBILITY.md) for details of migration onto the stable Kotlin 1.3 coroutines.
1212

1313
```kotlin
@@ -56,8 +56,6 @@ GlobalScope.launch {
5656

5757
## Using in your projects
5858

59-
> Note that these libraries are experimental and are subject to change.
60-
6159
The libraries are published to [kotlinx](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines) bintray repository,
6260
linked to [JCenter](https://bintray.com/bintray/jcenter?filterByPkgName=kotlinx.coroutines) and
6361
pushed to [Maven Central](https://search.maven.org/#search%7Cga%7C1%7Cg%3Aorg.jetbrains.kotlinx%20a%3Akotlinx-coroutines*).
@@ -70,7 +68,7 @@ Add dependencies (you can also add other modules that you need):
7068
<dependency>
7169
<groupId>org.jetbrains.kotlinx</groupId>
7270
<artifactId>kotlinx-coroutines-core</artifactId>
73-
<version>0.30.2-eap13</version>
71+
<version>1.0.0-RC1</version>
7472
</dependency>
7573
```
7674

@@ -90,7 +88,7 @@ Add dependencies (you can also add other modules that you need):
9088

9189
```groovy
9290
dependencies {
93-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.2-eap13'
91+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0-RC1'
9492
}
9593
```
9694

@@ -116,23 +114,25 @@ Add dependencies (you can also add other modules that you need):
116114

117115
```groovy
118116
dependencies {
119-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.2")
117+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0-RC1")
120118
}
121119
```
122120

123121
And make sure that you use the latest Kotlin version:
124122

125123
```groovy
126124
plugins {
127-
kotlin("jvm") version "1.2.70"
125+
kotlin("jvm") version "1.3.0-rc-146"
128126
}
129127
```
130128

131-
Make sure that you have either `jcenter()` or `mavenCentral()` in the list of repositories:
129+
Make sure that you have either `jcenter()` or `mavenCentral()` in the list of repositories.
130+
For Kotlin EAP builds you also may need `kotlin-eap` repository:
132131

133132
```
134133
repository {
135134
jcenter()
135+
maven { url "https://kotlin.bintray.com/kotlin-eap" }
136136
}
137137
```
138138

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

152152
```groovy
153-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.30.2-eap13'
153+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0-RC1'
154154
```
155155
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)
156156
coroutine dispatcher and also makes sure that in case of crashed coroutine with unhandled exception this

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Kotlin
2-
version=0.30.2-eap13-SNAPSHOT
2+
version=1.0.0-RC1-SNAPSHOT
33
group=org.jetbrains.kotlinx
44
kotlin_version=1.3.0-rc-146
55
kotlin_native_version=1.3.0-rc-146

native/README.md

+1-1
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.30.2'
45+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-native:1.0.0-RC1'
4646
}
4747
4848
sourceSets {

ui/coroutines-guide-ui.md

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

167167
```groovy
168-
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.30.2"
169-
```
170-
171-
Coroutines are experimental feature in Kotlin.
172-
You need to enable coroutines in Kotlin compiler by adding the following line to `gradle.properties` file:
173-
174-
```properties
175-
kotlin.coroutines=enable
168+
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0-RC1"
176169
```
177170

178171
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.0-rc-146
22-
coroutines_version=0.30.2
22+
coroutines_version=1.0.0-RC1
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.0-rc-146
22-
coroutines_version=0.30.2
22+
coroutines_version=1.0.0-RC1
2323

0 commit comments

Comments
 (0)