4
4
[ ![ 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
5
[ ![ Download] ( https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=0.23.4 ) ] ( https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.23.4 )
6
6
7
- Library support for Kotlin coroutines in
8
- [ Kotlin/JVM] ( core/README.md ) and
9
- [ Kotlin/JS] ( js/README.md ) .
7
+ Library support for Kotlin coroutines with [ multiplatform] ( #multiplatform ) support.
10
8
This is a companion version for Kotlin 1.2.51 release.
11
9
12
10
``` kotlin
@@ -22,12 +20,13 @@ launch {
22
20
* ` launch ` and ` async ` coroutine builders;
23
21
* ` Job ` and ` Deferred ` light-weight future with cancellation support;
24
22
* ` delay ` and ` yield ` top-level suspending functions.
25
- * [ js] ( js/README.md ) &mdash ; Kotlin/JS implementation of common coroutines with ` Promise ` support.
26
23
* [ core] ( core/README.md ) &mdash ; Kotlin/JVM implementation of common coroutines with additional features:
27
24
* ` CommonPool ` coroutine context (default on JVM);
28
25
* ` Channel ` and ` Mutex ` communication and synchronization primitives;
29
26
* ` produce ` and ` actor ` coroutine builders;
30
27
* ` select ` expression support and more.
28
+ * [ js] ( js/README.md ) &mdash ; Kotlin/JS implementation of common coroutines with ` Promise ` support.
29
+ * [ native] ( native/README.md ) &mdash ; Kotlin/Native implementation of common coroutines with ` runBlocking ` single-threaded event loop.
31
30
* [ reactive] ( reactive/README.md ) &mdash ; modules that provide builders and iteration support for various reactive streams libraries:
32
31
* Reactive Streams, RxJava 1.x and 2.x and Project Reactor.
33
32
* [ ui] ( ui/README.md ) &mdash ; modules that provide coroutine dispatchers for various single-threaded UI libraries:
@@ -100,10 +99,13 @@ repository {
100
99
}
101
100
```
102
101
103
- ### Kotlin/JS
102
+ ### Multiplatform
104
103
105
- Use ` org.jetbrains.kotlinx:kotlinx-coroutines-core-js:<version> ` artifact in your Gradle/Maven dependencies
106
- or install [ ` kotlinx-coroutines-core ` ] ( https://www.npmjs.com/package/kotlinx-coroutines-core ) package via NPM.
104
+ Core modules of ` kotlinx.coroutines ` are also available for
105
+ [ Kotlin/JS] ( js/README.md ) and [ Kotlin/Native] ( native/README.md ) . If you write
106
+ a common code that should get compiled or different platforms, add
107
+ [ ` org.jetbrains.kotlinx:kotlinx-coroutines-core-common:<version> ` ] ( common/kotlinx-coroutines-core-common/README.md )
108
+ to your common code dependencies.
107
109
108
110
### Android
109
111
0 commit comments