kotlinx.coroutines

Frameworks & LibrariesApache-2.0

Kotlin's coroutine library: structured concurrency, flows and channels.

Latest 1.11.0 · by JetBrainsWritten in KotlinWebsiteKotlin/kotlinx.coroutinesRSS

Release activity

Release activity — 3 releases across 3 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026No releases on Nov 8, 2026No releases on Nov 15, 2026
MondayNo releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026No releases on Nov 9, 2026
TuesdayNo releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026No releases on Nov 10, 2026
WednesdayNo releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026No releases on Nov 11, 2026
ThursdayNo releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026No releases on Nov 12, 2026
FridayNo releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026No releases on Nov 13, 2026
SaturdayNo releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026No releases on Nov 14, 2026

3 releases in the last year

Changelog

1.11.0

Latest
Added 9
  • Lint functions that mark passing a Job to coroutine builders as deprecated
  • A callsInPlace(EXACTLY_ONCE) contract to runBlocking in code shared between JVM and Native
  • A callsInPlace(EXACTLY_ONCE) contract to suspendCancellableCoroutine
  • CompletableDeferred.asDeferred for obtaining a read-only Deferred view
  • SharedFlow.asFlow for obtaining a Flow view with hidden hot flow semantics
  • A StateFlow.collectLatest overload returning Nothing to assist with finding unreachable code
Changed 5
  • Kotlin was updated to 2.2.20
  • Improved the published jar files
  • Various documentation improvements, including complete rewrites of structured concurrency and error handling-related KDoc
  • Moved Promise-related functions from JS and Wasm/JS to the new web target; on Wasm/JS, Promise now only accepts JsAny subtypes
  • Coroutine exceptions that can't be propagated on JS and Wasm/JS are now reported to the JS runtime instead of being logged
Fixed 5
  • flowOn incorrectly handling ThreadContextElement updates
  • Exceptions in user-supplied Thread.UncaughtExceptionHandler instances causing the internal coroutines machinery to fail
  • CoroutineDispatcher.asScheduler in the RxJava integration not cancelling outstanding work when a Worker gets cancelled, which led to memory leaks in some scenarios
  • SharedFlow entering an invalid state when a subscriber and an emitter are cancelled simultaneously
  • An R8 optimization leading to shareIn/stateIn coroutines getting garbage-collected
Deprecated 2
  • Using CoroutineDispatcher as the coroutine context key; ContinuationInterceptor has to be used instead
  • Advanced the deprecation levels on kotlinx-coroutines-test APIs

From kotlinx.coroutines

Various
  • Kotlin was updated to 2.2.20 (#4545).
  • Improved the published jar files (#3842, #4599).
  • Various documentation improvements, including complete rewrites of structured concurrency and error handling-related KDoc (#4433, #4596).
Breaking changes and deprecations
  • Moved Promise-related functions from JS and Wasm/JS to the new web target. On Wasm/JS, this is a breaking change. Before the change, Promise on Wasm/JS could work with arbitrary Kotlin types, but now, only JsAny subtypes are accepted (#4563).
  • Changed handling of coroutine exceptions that can't be propagated on JS and Wasm/JS. B efore, exceptions were logged, but now, they are reported to the JS runtime (#4451, #4631).
  • Deprecated using CoroutineDispatcher as the coroutine context key; now, ContinuationInterceptor has to be used instead (#4333).
  • Advanced the deprecation levels on kotlinx-coroutines-test APIs (#4604).
  • Added lint functions that mark passing a Job to coroutine builders as deprecated (#4435).
Bug fixes and improvements
  • Added a callsInPlace(EXACTLY_ONCE) contract to runBlocking in code shared between JVM and Native (#4368).
  • Added a callsInPlace(EXACTLY_ONCE) contract to suspendCancellableCoroutine (#4574).
  • Fixed flowOn incorrectly handling ThreadContextElement updates (#4403).
  • Fixed exceptions in user-supplied Thread.UncaughtExceptionHandler instances causing the internal coroutines machinery to fail (#4516).
  • Fixed CoroutineDispatcher.asScheduler in the RxJava integration not cancelling outstanding work when a Worker gets cancelled, which led to memory leaks in some scenarios (#4615).
  • Fixed SharedFlow entering an invalid state when a subscriber and an emitter are cancelled simultaneously (#4583).
  • Fixed an R8 optimization leading to shareIn/stateIn coroutines getting garbage-collected (#4646). Thanks, @solevic!
Small additions
  • Added CompletableDeferred.asDeferred for obtaining a read-only Deferred view (#4408).
  • Added SharedFlow.asFlow for obtaining a Flow view with hidden hot flow semantics (#4530). Thanks, @g000sha256!
  • Added a StateFlow.collectLatest overload returning Nothing to assist with finding unreachable code (#4454).
  • Added ReceiveChannel.consumeTo for consuming a ReceiveChannel into a MutableCollection (#4520).
  • Added a StateFlow<T>.onSubscription overload returning a StateFlow<T>, similar to SharedFlow<T>.onSubscription returning SharedFlow<T> (#4275). Thanks, @xit0c!
  • Added terminal Flow operators for collecting a Flow to a Map (#1541).
Changelog relative to version 1.11.0

No changes, only the version is increased.

View originalPermalink
How 1.11.0 went

1.11.0-rc02

Pre-release
Fixed 1
  • Restored binary compatibility with 1.10.2 and older versions on Wasm/JS for usages of Promise-related functions
View originalRead the notes
How 1.11.0-rc02 went

1.11.0-rc01

Pre-release
Added 6
  • CompletableDeferred.asDeferred for obtaining a read-only Deferred view
  • SharedFlow.asFlow for obtaining a Flow view with hidden hot flow semantics
  • StateFlow.collectLatest overload returning Nothing to assist with finding unreachable code
  • ReceiveChannel.consumeTo for consuming a ReceiveChannel into a MutableCollection
  • StateFlow<T>.onSubscription overload returning a StateFlow<T>, similar to SharedFlow<T>.onSubscription returning SharedFlow<T>
  • Terminal Flow operators for collecting a Flow to a Map
Changed 7
  • Kotlin was updated to 2.2.20
  • Improved the published jar files
  • Various documentation improvements, including complete rewrites of structured concurrency and error handling-related KDoc
  • Moved Promise-related functions from JS and Wasm/JS to the new web target; on Wasm/JS, only JsAny subtypes are accepted as Promise types, which is a breaking change
  • Exceptions that can't be propagated on JS and Wasm/JS are now reported to the JS runtime instead of being logged
  • Added a callsInPlace(EXACTLY_ONCE) contract to runBlocking in code shared between JVM and Native
  • Added a callsInPlace(EXACTLY_ONCE) contract to suspendCancellableCoroutine
Fixed 5
  • flowOn incorrectly handling ThreadContextElement updates
  • Exceptions in user-supplied Thread.UncaughtExceptionHandler instances causing the internal coroutines machinery to fail
  • CoroutineDispatcher.asScheduler in the RxJava integration not cancelling outstanding work when a Worker gets cancelled, which led to memory leaks in some scenarios
  • SharedFlow entering an invalid state when a subscriber and an emitter are cancelled simultaneously
  • R8 optimization leading to shareIn/stateIn coroutines getting garbage-collected
Deprecated 3
  • Using CoroutineDispatcher as the coroutine context key is deprecated; ContinuationInterceptor should be used instead
  • Advanced the deprecation levels on kotlinx-coroutines-test APIs
  • Added lint functions that mark passing a Job to coroutine builders as deprecated
View originalRead the notes
How 1.11.0-rc01 went

1.10.2

Changed 2
  • Improved handling of dispatcher failures in .limitedParallelism
  • Improved handling of dispatcher failures during flow collection
Fixed 3
  • Fixed the kotlinx-coroutines-debug JAR file including the module-info.class file twice, resulting in failures in various tooling
  • Fixed Flow.stateIn hanging when the scope is cancelled in advance or the flow is empty
  • Fixed runBlocking failing to run its coroutine to completion in some cases if its JVM thread got interrupted
View originalRead the notes
How 1.10.2 went

1.10.1

Fixed binary incompatibility introduced for non-JVM targets in .

View originalRead the notes
How 1.10.1 went

1.10.0

Added 1
  • Introduced Flow.any, Flow.all, and Flow.none
Changed 5
  • Kotlin was updated to 2.1.0
  • Reorganized kotlinx-coroutines-debug and kotlinx-coroutines-core code to avoid a split package between the two artifacts; directly referencing kotlinx.coroutines.debug.AgentPremain must now be replaced with kotlinx.coroutines.debug.internal.AgentPremain
  • No longer shade byte-buddy in kotlinx-coroutines-debug, reducing the artifact size and simplifying the build configuration of client code
  • Exceptions thrown by CoroutineDispatcher.dispatch are now properly reported instead of raising internal errors
  • Small tweaks, fixes, and documentation improvements
Fixed 6
  • Fixed NullPointerException when using Java-deserialized kotlinx-coroutines-core exceptions
  • Fixed a bug that delayed scheduling of a Dispatchers.Default or Dispatchers.IO task after a yield() in rare scenarios
  • Fixed a bug that prevented the main() coroutine on Wasm/WASI from executing after a delay() call in some scenarios
  • Fixed scheduling of runBlocking tasks on Kotlin/Native that arrive after the runBlocking block was exited
  • Fixed some terminal Flow operators sometimes resuming without taking cancellation into account
  • Fixed a bug on the JVM that caused coroutine-bound ThreadLocal values not to get cleaned when using non-CoroutineDispatcher continuation interceptors
View originalRead the notes
How 1.10.0 went

1.9.0

Added 3
  • Wasm/WASI target support
  • limitedParallelism optionally accepts the name of the dispatcher view for easier debugging
  • Flow<T>.chunked(size: Int): Flow<List<T>> operator that groups emitted values into groups of the given size
Changed 11
  • Dispatchers.IO is no longer initialized on the JVM when other standard dispatchers are accessed
  • Closeable dispatchers are now instances of AutoCloseable
  • Casting a Mutex to Semaphore is forbidden
  • CoroutineDispatcher.limitedParallelism is promoted to stable
  • CoroutineStart.ATOMIC is promoted from ExperimentalCoroutinesApi to DelicateCoroutinesApi
  • CancellableContinuation.resume with an onCancellation lambda is promoted to stable, providing extra arguments to the lambda
Fixed 5
  • Calling hasNext on a Channel's iterator is idempotent
  • CoroutineScope() created without an explicit dispatcher uses Dispatchers.Default on Native
  • Non-Android Dispatchers.Main can initialize when the Firebase dependency is used
  • Ensured a more intuitive ordering of tasks in runBlocking
  • Stack overflow that may occur when calling asDeferred on a Future many times is worked around
Deprecated 3
  • Deprecation levels advanced for the BroadcastChannel-based API
  • Deprecation levels advanced for the old kotlinx-coroutines-test API
  • Job.cancelFutureOnCompletion is deprecated
View originalRead the notes
How 1.9.0 went

1.9.0-RC.2

Pre-release
Changed 4
  • Promoted CoroutineStart.ATOMIC from ExperimentalCoroutinesApi to DelicateCoroutinesApi
  • Reworked the documentation for CoroutineStart and Channel-based API
  • Forbid casting a Mutex to Semaphore
  • No longer initialize Dispatchers.IO on the JVM when other standard dispatchers are accessed
Fixed 2
  • Worked around a stack overflow that may occur when calling asDeferred on a Future many times
  • Fixed a bug that disallowed setting a custom probeCoroutineResumed when starting coroutines with UNDISPATCHED
Deprecated 3
  • Advanced the deprecation levels for the BroadcastChannel-based API
  • Advanced the deprecation levels for the old kotlinx-coroutines-test API
  • Deprecated Job.cancelFutureOnCompletion
View originalRead the notes
How 1.9.0-RC.2 went

1.9.0-RC

Pre-release
Added 5
  • Introduced the Flow<T>.chunked(size: Int): Flow<List<T>> operator that groups emitted values into groups of the given size.
  • limitedParallelism optionally accepts the name of the dispatcher view for easier debugging.
  • Marked the classes and interfaces that are not supposed to be inherited from with the new InternalForInheritanceCoroutinesApi opt-in.
  • Marked the classes and interfaces inheriting from which is not stable with the new ExperimentalForInheritanceCoroutinesApi opt-in.
  • Wasm/WASI target support.
Changed 7
  • Kotlin was updated to 2.0.
  • Closeable dispatchers are instances of AutoCloseable now.
  • Promoted CoroutineDispatcher.limitedParallelism to stable.
  • Promoted CancellableContinuation.resume with an onCancellation lambda to stable, providing extra arguments to the lambda.
  • Ensured a more intuitive ordering of tasks in runBlocking.
  • Simplified the internal implementation of Job.
  • CoroutineScope() created without an explicit dispatcher uses Dispatchers.Default on Native.
Fixed 2
  • Fixed a bug that prevented non-Android Dispatchers.Main from initializing when the Firebase dependency is used.
  • Calling hasNext on a Channel's iterator is idempotent.
View originalRead the notes
How 1.9.0-RC went

1.8.1

Changed 3
  • Removed the @ExperimentalTime annotation from usages of TimeSource
  • No longer using kotlin.random.Random as part of Dispatchers.Default and Dispatchers.IO initialization
  • Small tweaks and documentation fixes
Fixed 2
  • Introduced a workaround for an Android bug that caused an occasional NullPointerException when setting the StateFlow value on old Android devices
  • Flow.timeout now throws the exception with which the channel was closed
View originalRead the notes
How 1.8.1 went
View all

Discussion

If you publish kotlinx.coroutines, you can claim this product by proving you administer its repository.