Registry / utility / kotlinx-coroutines-jdk8

kotlinx-coroutines-jdk8

JSON →
library1.11.0javamavenunverified

Coroutine support for JDK 8 features like CompletableFuture and Stream API.

<dependency> <groupId>org.jetbrains.kotlinx</groupId> <artifactId>kotlinx-coroutines-jdk8</artifactId> <version>1.11.0</version> </dependency>
INSTALL
IMPORT
SIG · KOTLINX-COROUTINES
K
kotlinx-coroutines-jdk8
utilityjavav1.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

future
kotlinx.coroutines.future.future

Converts a coroutine to a CompletableFuture using the future builder.

import kotlinx.coroutines.* import kotlinx.coroutines.future.future fun main() = runBlocking { val completableFuture = future { delay(1000) 42 } println(completableFuture.get()) }
Debug
Known issues
breakingRequires Kotlin 1.3+ and JDK 8+; incompatible with older Kotlin versions.
fix
Ensure Kotlin version is 1.3 or later and JDK 8+.
affects: <1.0.0
Upgrade
Version history
1.11.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
kotlinx-coroutines-jdk8 — mvn dependency:get kotlinx-coroutines-jdk8 · libregistry