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.3.8 ) ] ( https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/1.3.8 )
5+ [ ![ Download] ( https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=1.3.9 ) ] ( https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/1.3.9 )
66
77Library support for Kotlin coroutines with [ multiplatform] ( #multiplatform ) support.
8- This is a companion version for Kotlin ` 1.3.71 ` release.
8+ This is a companion version for Kotlin ` 1.4.0 ` release.
99
1010``` kotlin
1111suspend fun main () = coroutineScope {
@@ -84,15 +84,15 @@ Add dependencies (you can also add other modules that you need):
8484<dependency >
8585 <groupId >org.jetbrains.kotlinx</groupId >
8686 <artifactId >kotlinx-coroutines-core</artifactId >
87- <version >1.3.8 </version >
87+ <version >1.3.9 </version >
8888</dependency >
8989```
9090
9191And make sure that you use the latest Kotlin version:
9292
9393``` xml
9494<properties >
95- <kotlin .version>1.3.71 </kotlin .version>
95+ <kotlin .version>1.4.0 </kotlin .version>
9696</properties >
9797```
9898
@@ -102,15 +102,15 @@ Add dependencies (you can also add other modules that you need):
102102
103103``` groovy
104104dependencies {
105- implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8 '
105+ implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9 '
106106}
107107```
108108
109109And make sure that you use the latest Kotlin version:
110110
111111``` groovy
112112buildscript {
113- ext.kotlin_version = '1.3.71 '
113+ ext.kotlin_version = '1.4.0 '
114114}
115115```
116116
@@ -128,15 +128,15 @@ Add dependencies (you can also add other modules that you need):
128128
129129``` groovy
130130dependencies {
131- implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8 ")
131+ implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9 ")
132132}
133133```
134134
135135And make sure that you use the latest Kotlin version:
136136
137137``` groovy
138138plugins {
139- kotlin("jvm") version "1.3.71 "
139+ kotlin("jvm") version "1.4.0 "
140140}
141141```
142142
@@ -146,17 +146,22 @@ Make sure that you have either `jcenter()` or `mavenCentral()` in the list of re
146146
147147Core modules of ` kotlinx.coroutines ` are also available for
148148[ Kotlin/JS] ( #js ) and [ Kotlin/Native] ( #native ) .
149- In common code that should get compiled for different platforms, add dependency to
150- [ ` kotlinx-coroutines-core-common ` ] ( https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-common/1.3.8/jar )
151- (follow the link to get the dependency declaration snippet).
149+ In common code that should get compiled for different platforms, you can add dependency to ` kotlinx-coroutines-core ` right to the ` commonMain ` source set:
150+ ``` groovy
151+ commonMain {
152+ dependencies {
153+ implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
154+ }
155+ }
156+ ```
152157
153158### Android
154159
155160Add [ ` kotlinx-coroutines-android ` ] ( ui/kotlinx-coroutines-android )
156161module as dependency when using ` kotlinx.coroutines ` on Android:
157162
158163``` groovy
159- implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.8 '
164+ implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9 '
160165```
161166
162167This gives you access to Android [ Dispatchers.Main]
@@ -172,15 +177,15 @@ For more details see ["Optimization" section for Android](ui/kotlinx-coroutines-
172177### JS
173178
174179[ Kotlin/JS] ( https://kotlinlang.org/docs/reference/js-overview.html ) version of ` kotlinx.coroutines ` is published as
175- [ ` kotlinx-coroutines-core-js ` ] ( https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-js/1.3.8 /jar )
180+ [ ` kotlinx-coroutines-core-js ` ] ( https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-js/1.3.9 /jar )
176181(follow the link to get the dependency declaration snippet).
177182
178183You can also use [ ` kotlinx-coroutines-core ` ] ( https://www.npmjs.com/package/kotlinx-coroutines-core ) package via NPM.
179184
180185### Native
181186
182187[ Kotlin/Native] ( https://kotlinlang.org/docs/reference/native-overview.html ) version of ` kotlinx.coroutines ` is published as
183- [ ` kotlinx-coroutines-core-native ` ] ( https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-native/1.3.8 /jar )
188+ [ ` kotlinx-coroutines-core-native ` ] ( https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-native/1.3.9 /jar )
184189(follow the link to get the dependency declaration snippet).
185190
186191Only single-threaded code (JS-style) on Kotlin/Native is currently supported.
0 commit comments