Skip to content

Commit 0216426

Browse files
committed
Per-module readme files
1 parent fcd9316 commit 0216426

File tree

7 files changed

+81
-15
lines changed

7 files changed

+81
-15
lines changed

README.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,14 @@ 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.
7+
* [kotlinx-coroutines-core](kotlinx-coroutines-core) module with core primitives to work with coroutines.
88
Its functionality is covered by the [guide to kotlinx.coroutines](coroutines-guide.md).
9+
* [kotlinx-coroutines-jdk8](kotlinx-coroutines-jdk8) module with additional libraries for JDK8 (or Android API level 24).
10+
* [kotlinx-coroutines-nio](kotlinx-coroutines-nio) module with extensions for asynchronous IO on JDK7+.
11+
* [kotlinx-coroutines-swing](kotlinx-coroutines-swing) module with `Swing` context for Swing UI applications.
12+
* [kotlinx-coroutines-javafx](kotlinx-coroutines-javafx) module with `JavaFx` context for JavaFX UI applications.
13+
* [kotlinx-coroutines-rx](kotlinx-coroutines-rx) module with utilities for [RxJava](https://github.com/ReactiveX/RxJava).
914

10-
* `kotlinx-coroutines-jdk8` module with additional libraries for JDK8 (or Android API level 24).
11-
* `future { ... }` coroutine builder that returns `CompletableFuture` and works in `CommonPool` context by default.
12-
* `.await()` suspending function for `CompletableFuture`.
13-
14-
* `kotlinx-coroutines-nio` module with extensions for asynchronous IO on JDK7+.
15-
16-
* `kotlinx-coroutines-swing` module with `Swing` context for Swing UI applications.
17-
18-
* `kotlinx-coroutines-javafx` module with `JavaFx` context for JavaFX UI applications.
19-
20-
* `kotlinx-coroutines-rx` module with utilities to build `Observable` objects from
21-
[RxJava](https://github.com/ReactiveX/RxJava) with imperative coroutines and consume their values
22-
from inside coroutines. It is in very basic form now (example-only, not even close to production use)
23-
2415
## References and documentation
2516

2617
* [Guide to kotlinx.coroutines by example](coroutines-guide.md)

kotlinx-coroutines-core/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Module kotlinx-coroutines-core
2+
3+
Core primitives to work with coroutines.
4+
5+
# Package kotlinx.coroutines.experimental
6+
7+
General-purpose coroutine builders and contexts.
8+
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
15+
`yield()` to release a thread in single-threaded dispatchers.
16+
* `withTimeout(timeout) {...}` scope function to easily set coroutine time-limit (deadline),
17+
and `NonCancellable` context to avoid it when needed.
18+
* `CommonPool` and `Unconfined` contexts, access to `context` of a parent coroutine in its `CoroutineScope`.
19+
* `newSingleThreadContext(...)` and `newFixedThreadPoolContext(...)` functions,
20+
`Executor.toCoroutineDispatcher()` extension.
21+
* Cancellation support with `Job` interface and `suspendCancellableCoroutine` helper function.
22+
* Debugging facilities for coroutines (run JVM with `-ea` or `-Dkotlinx.coroutines.debug` options) and
23+
`newCoroutineContext(context)` function to write user-defined coroutine builders that work with these
24+
debugging facilities.
25+
26+
# Package kotlinx.coroutines.experimental.channels
27+
28+
Channels -- non-blocking primitives for communicating a stream of values between coroutines.
29+
30+
* `Channel`, `SendChannel`, and `ReceiveChannel` interfaces,
31+
* `RendezvousChannel` (unbuffered) and `ArrayChannel` (buffered) implementations
32+
* `Channel()` factory function and `buildChannel{}` coroutines builder.

kotlinx-coroutines-javafx/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Module kotlinx-coroutines-javafx
2+
3+
Provides `JavaFx` context for JavaFX UI applications.
4+
5+
# Package kotlinx.coroutines.experimental.javafx
6+
7+
Provides `JavaFx` context for JavaFX UI applications.

kotlinx-coroutines-jdk8/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Module kotlinx-coroutines-jdk8
2+
3+
Additional libraries for JDK8 (or Android API level 24).
4+
5+
# Package kotlinx.coroutines.experimental.jdk8
6+
7+
Additional libraries for JDK8 (or Android API level 24).
8+
9+
* `future { ... }` coroutine builder that returns `CompletableFuture` and works in `CommonPool` context by default.
10+
* `.await()` suspending function for `CompletableFuture`.

kotlinx-coroutines-nio/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Module kotlinx-coroutines-nio
2+
3+
Extensions for asynchronous IO on JDK7+.
4+
5+
# Package kotlinx.coroutines.experimental.nio
6+
7+
Extensions for asynchronous IO on JDK7+.
8+
9+
* `AsynchronousFileChannel` extensions `aLock`, `aRead`, and `aWrite`.
10+
* `AsynchronousServerSocketChannel` extension `aAccept`.
11+
* `AsynchronousSocketChannel` extensions `aConnect`, `aRead`, and `aWrite`.

kotlinx-coroutines-rx/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Module kotlinx-coroutines-rx
2+
3+
Utilities for [RxJava](https://github.com/ReactiveX/RxJava).
4+
It is in very basic form now (example-only, not even close to production use).
5+
6+
# Package kotlinx.coroutines.experimental.rx
7+
8+
Utilities for [RxJava](https://github.com/ReactiveX/RxJava).

kotlinx-coroutines-swing/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Module kotlinx-coroutines-swing
2+
3+
Provides `Swing` context for Swing UI applications.
4+
5+
# Package kotlinx.coroutines.experimental.swing
6+
7+
Provides `Swing` context for Swing UI applications.

0 commit comments

Comments
 (0)