11# kotlinx.coroutines
22
3- Library support for Kotlin coroutines. This is a companion version for Kotlin 1.1.0-beta-18 release.
3+ Library support for Kotlin coroutines. This is a companion version for Kotlin 1.1.0-beta-22 release.
44
55## Modules and features
66
77* ` kotlinx-coroutines-core ` module with core primitives to work with coroutines. It is designed to work on any JDK6+ and Android
88and 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) { ... } ` to get a deferred result of coroutine execution in a non-blocking way
13- via a light-weight future interface called ` Deferred ` .
14- * ` delay(...) ` for a non-blocking sleep in coroutines.
15- * ` CommonPool ` and ` Here ` contexts, ` context ` or a parent coroutine.
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 ` .
1618 * ` newSingleThreadContext(...) ` and ` newFixedThreadPoolContext(...) ` functions,
1719 ` Executor.toCoroutineDispatcher() ` extension.
1820 * Cancellation support with ` Job ` interface and ` suspendCancellableCoroutine ` helper function.
@@ -36,9 +38,9 @@ from inside coroutines. It is in very basic form now (example-only, not even clo
3638
3739## References and documentation
3840
39- * [ Coroutines guide ] ( coroutines-guide.md )
40- * [ Change log] ( CHANGES.md )
41- * [ Coroutines design document] ( https://github.com/Kotlin/kotlin-coroutines/blob/master/kotlin-coroutines-informal.md )
41+ * [ Guide to kotlinx.coroutines by example ] ( coroutines-guide.md )
42+ * [ Change log for kotlinx.coroutines ] ( CHANGES.md )
43+ * [ Coroutines design document (KEEP) ] ( https://github.com/Kotlin/kotlin-coroutines/blob/master/kotlin-coroutines-informal.md )
4244
4345## Using in your projects
4446
@@ -79,7 +81,7 @@ And make sure that you use the right Kotlin version:
7981
8082``` xml
8183<properties >
82- <kotlin .version>1.1.0-beta-18 </kotlin .version>
84+ <kotlin .version>1.1.0-beta-22 </kotlin .version>
8385</properties >
8486```
8587
@@ -105,6 +107,6 @@ And make sure that you use the right Kotlin version:
105107
106108``` groovy
107109buildscript {
108- ext.kotlin_version = '1.1.0-beta-18 '
110+ ext.kotlin_version = '1.1.0-beta-22 '
109111}
110112```
0 commit comments