kotlinx.coroutines reference documentation

Library support for Kotlin coroutines. This reference is a companion to Guide to kotlinx.coroutines by example.

Modules

Name Description
kotlinx-coroutines-core Core primitives to work with coroutines
kotlinx-coroutines-reactive Utilities for Reactive Streams
kotlinx-coroutines-reactor Utilities for Reactor
kotlinx-coroutines-rx2 Utilities for RxJava 2.x
kotlinx-coroutines-android UI context for Android applications
kotlinx-coroutines-javafx JavaFx context for JavaFX UI applications
kotlinx-coroutines-swing Swing context for Swing UI applications
kotlinx-coroutines-jdk8 Integration with JDK8 CompletableFuture (Android API level 24)
kotlinx-coroutines-guava Integration with Guava ListenableFuture
kotlinx-coroutines-slf4j Integration with SLF4J MDC
kotlinx-coroutines-play-services Integration with Google Play Services Tasks API

Examples