|
2 | 2 |
|
3 | 3 | Additional libraries for JDK8 (or Android API level 24).
|
4 | 4 |
|
5 |
| -# Package kotlinx.coroutines.experimental.jdk8 |
| 5 | +Coroutine builders: |
6 | 6 |
|
7 |
| -Additional libraries for JDK8 (or Android API level 24). |
| 7 | +| **Name** | **Result** | **Scope** | **Description** |
| 8 | +| -------- | ---------- | ---------- | --------------- |
| 9 | +| [future] | [CompletableFuture][java.util.concurrent.CompletableFuture] | [CoroutineScope] | Returns a single value with the future result |
| 10 | + |
| 11 | +Extension functions: |
| 12 | + |
| 13 | +| **Name** | **Description** |
| 14 | +| -------- | --------------- |
| 15 | +| [CompletableFuture.await][java.util.concurrent.CompletableFuture.await] | Awaits for completion of the future |
| 16 | +| [Deferred.toCompletableFuture][kotlinx.coroutines.experimental.Deferred.toCompletableFuture] | Converts a deferred value to the future |
| 17 | + |
| 18 | +<!--- SITE_ROOT https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core --> |
| 19 | +<!--- DOCS_ROOT kotlinx-coroutines-core/target/dokka/kotlinx-coroutines-core --> |
| 20 | +<!--- INDEX kotlinx.coroutines.experimental --> |
| 21 | +[CoroutineScope]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-coroutine-scope/index.html |
| 22 | +<!--- SITE_ROOT https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-jdk8 --> |
| 23 | +<!--- DOCS_ROOT kotlinx-coroutines-jdk8/target/dokka/kotlinx-coroutines-jdk8 --> |
| 24 | +<!--- INDEX kotlinx.coroutines.experimental.future --> |
| 25 | +[java.util.concurrent.CompletableFuture]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-jdk8/kotlinx.coroutines.experimental.future/java.util.concurrent.-completable-future/index.html |
| 26 | +[java.util.concurrent.CompletableFuture.await]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-jdk8/kotlinx.coroutines.experimental.future/java.util.concurrent.-completable-future/await.html |
| 27 | +[kotlinx.coroutines.experimental.Deferred.toCompletableFuture]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-jdk8/kotlinx.coroutines.experimental.future/kotlinx.coroutines.experimental.-deferred/to-completable-future.html |
| 28 | +[future]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-jdk8/kotlinx.coroutines.experimental.future/future.html |
| 29 | +<!--- END --> |
| 30 | + |
| 31 | +# Package kotlinx.coroutines.experimental.future |
8 | 32 |
|
9 |
| -* `future { ... }` coroutine builder that returns `CompletableFuture` and works in `CommonPool` context by default. |
10 |
| -* `.await()` suspending function for `CompletableFuture`. |
| 33 | +Additional libraries for JDK8 [CompletableFuture][java.util.concurrent.CompletableFuture]. |
0 commit comments