@@ -4,23 +4,8 @@ Library support for Kotlin coroutines. This is a companion version for Kotlin 1.
4
4
5
5
## Modules and features
6
6
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 ) .
24
9
25
10
* ` kotlinx-coroutines-jdk8 ` module with additional libraries for JDK8 (or Android API level 24).
26
11
* ` 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):
73
58
<dependency >
74
59
<groupId >org.jetbrains.kotlinx</groupId >
75
60
<artifactId >kotlinx-coroutines-core</artifactId >
76
- <version >0.6 -beta</version >
61
+ <version >0.7 -beta</version >
77
62
</dependency >
78
63
```
79
64
@@ -100,7 +85,7 @@ repositories {
100
85
Add dependencies (you can also add other modules that you need):
101
86
102
87
``` groovy
103
- compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.6 -beta'
88
+ compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.7 -beta'
104
89
```
105
90
106
91
And make sure that you use the right Kotlin version:
0 commit comments