Registry / networking / kotlinx-coroutines-jdk9

kotlinx-coroutines-jdk9

JSON →
library1.10.2javamavenunverified

Coroutines support libraries for Kotlin providing JDK 9 specific integration features like Flow adapters for reactive streams.

<dependency> <groupId>org.jetbrains.kotlinx</groupId> <artifactId>kotlinx-coroutines-jdk9</artifactId> <version>1.10.2</version> </dependency>
INSTALL
IMPORT
SIG · KOTLINX-COROUTINES
K
kotlinx-coroutines-jdk9
networkingjavav1.10.2
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.

FlowKt
kotlinx.coroutines.reactive.FlowKt

Converts a Kotlin Flow to a JDK 9 reactive streams Publisher and subscribes to it.

import kotlinx.coroutines.* import kotlinx.coroutines.reactive.* import java.util.concurrent.Flow fun main() = runBlocking { val flow = flowOf(1, 2, 3) val publisher: Flow.Publisher<Int> = flow.asPublisher() publisher.subscribe { println(it) } }
Debug
Known issues
breakingRequires JDK 9 or later; not compatible with JDK 8.
fix
Use kotlinx-coroutines-jdk8 module for JDK 8 compatibility.
affects: all
Upgrade
Version history
1.10.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
kotlinx-coroutines-jdk9 — mvn dependency:get kotlinx-coroutines-jdk9 · libregistry