OSS TanbouSign in with GitHub

Structure asynchronous and concurrent work in Kotlin with the official library

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
13,818
Primary language
Kotlin
License
Apache-2.0
Repository last updated
Oct 2, 2026
On this page

Overview

kotlinx.coroutines is the official library for expressing asynchronous and concurrent work in structured Kotlin code. It provides lightweight coroutines, cancellable Job and Deferred values, asynchronous streams through Flow, and communication and synchronization primitives such as Channel. Its multiplatform modules cover JVM, JS, Wasm/JS, and Native targets.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Compose lifetimes, cancellation, and data flows through shared APIs

launch and async start work, while coroutineScope and supervisorScope define child lifetimes and failure propagation. Flow supplies cold asynchronous streams with operators such as map and filter; Channel, Mutex, and Semaphore cover communication and synchronization. Separate modules add runTest and TestScope for testing and DebugProbes for inspecting active coroutines.

Sources: [1]

Best fit

Fits latency-bound work and continuously changing application state

The library fits applications coordinating network or file I/O, UI state updates, or groups of asynchronous tasks that should cancel as one operation. It also suits projects bridging Reactive Streams, RxJava, Reactor, CompletableFuture, and similar APIs to Kotlin suspend functions or Flow.

Sources: [1]

Before adoption

Review target dispatchers and compatibility changes for each release

Main dispatchers require matching runtime artifacts for environments such as Android, Swing, and JavaFX. Stable version 1.11.0 accompanies Kotlin 2.2.20 and includes Promise API moves for JS and Wasm/JS, changed exception reporting, and progressed deprecations. Upgrades should be checked against the changelog, and callers must still design scope ownership, cancellation, and exception handling explicitly. The project is Apache-2.0 licensed.

Sources: [1][2][3][4]

Official sources

  1. [1]Kotlin/kotlinx.coroutines — README 1.11.0(2026-10-04)
  2. [2]Kotlin/kotlinx.coroutines — CHANGELOG 1.11.0(2026-10-04)
  3. [3]kotlinx.coroutines 1.11.0 release(2026-10-04)
  4. [4]Kotlin/kotlinx.coroutines — LICENSE(2026-10-04)
Supplemental curator note

The key value is not merely replacing callbacks, but designing asynchronous work as cancellable, structured hierarchies. Before adoption, review dispatchers, exception propagation, and the library's Kotlin-version pairing for each target.

Try it in 3 steps

  1. 1

    Add the dependency

    In an existing Kotlin/JVM Gradle project using Kotlin 2.2.20, add this to dependencies and ensure mavenCentral() is configured.

    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.11.0")
  2. 2

    Import the coroutine APIs

    Place the import at the top of the Kotlin file containing the minimal example.

    import kotlinx.coroutines.*
  3. 3

    Run a child coroutine

    Run the program and observe that the parent scope waits for its child before completion.

    suspend fun main() = coroutineScope { launch { delay(1000); println("Kotlin Coroutines World!") } println("Hello") }
Check the official README

Growth

Growth trends · Last 30 days

13,818 Stars

Trend data is still being collected.

Development activity

Last 90 days · weekly

Commits (last 30 days)
2
Open PRs
43

Development activity is still being collected.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • kotlin
  • coroutines
  • async
Stars
13,818
Forks
1,950
Watchers
290
Open issues
301
Contributors
308
Owner type
Organization
Primary language
Kotlin
License
Apache-2.0
Repository last updated
Oct 2, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?