@@ -4,23 +4,8 @@ Library support for Kotlin coroutines. This is a companion version for Kotlin 1.
44
55## Modules and features
66
7- * ` kotlinx-coroutines-core ` module with core primitives to work with coroutines. It is designed to work on any JDK6+ and Android
8- and contains the following main pieces:
9- * ` launch(context) {...} ` to start a coroutine in the given context and get reference to its ` Job ` .
10- * ` run(context) {...} ` to switch to a different context inside a coroutine.
11- * ` runBlocking {...} ` to use asynchronous Kotlin APIs from a thread-blocking code.
12- * ` defer(context) {...} ` and ` lazyDefer(context) {...} ` to get a deferred result of coroutine execution in a
13- non-blocking way via a light-weight future interface called ` Deferred ` .
14- * ` delay(...) ` for a non-blocking sleep in coroutines and ` yield ` to release a thread in single-threaded dispatchers.
15- * ` withTimeout(timeout) {...} ` scope function to easily set coroutine time-limit (deadline),
16- and ` NonCancellable ` context to avoid it when needed.
17- * ` CommonPool ` and ` Here ` contexts, access to ` context ` of a parent coroutine in its ` CoroutineScope ` .
18- * ` newSingleThreadContext(...) ` and ` newFixedThreadPoolContext(...) ` functions,
19- ` Executor.toCoroutineDispatcher() ` extension.
20- * Cancellation support with ` Job ` interface and ` suspendCancellableCoroutine ` helper function.
21- * Debugging facilities for coroutines (run JVM with ` -ea ` or ` -Dkotlinx.coroutines.debug ` options) and
22- ` newCoroutineContext(context) ` function to write user-defined coroutine builders that work with these
23- debugging facilities.
7+ * ` kotlinx-coroutines-core ` module with core primitives to work with coroutines.
8+ Its functionality is covered by the [ guide to kotlinx.coroutines] ( coroutines-guide.md ) .
249
2510* ` kotlinx-coroutines-jdk8 ` module with additional libraries for JDK8 (or Android API level 24).
2611 * ` future { ... } ` coroutine builder that returns ` CompletableFuture ` and works in ` CommonPool ` context by default.
@@ -73,7 +58,7 @@ Add dependencies (you can also add other modules that you need):
7358<dependency >
7459 <groupId >org.jetbrains.kotlinx</groupId >
7560 <artifactId >kotlinx-coroutines-core</artifactId >
76- <version >0.6 -beta</version >
61+ <version >0.7 -beta</version >
7762</dependency >
7863```
7964
@@ -100,7 +85,7 @@ repositories {
10085Add dependencies (you can also add other modules that you need):
10186
10287``` groovy
103- compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.6 -beta'
88+ compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.7 -beta'
10489```
10590
10691And make sure that you use the right Kotlin version:
0 commit comments