Sourced from org.jetbrains.kotlinx:kotlinx-coroutines-core's releases.
1.11.0
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 newwebtarget. On Wasm/JS, this is a breaking change. Before the change,Promiseon Wasm/JS could work with arbitrary Kotlin types, but now, onlyJsAnysubtypes 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
CoroutineDispatcheras the coroutine context key; now,ContinuationInterceptorhas to be used instead (#4333).- Advanced the deprecation levels on
kotlinx-coroutines-testAPIs (#4604).- Added lint functions that mark passing a
Jobto coroutine builders as deprecated (#4435).Bug fixes and improvements
- Added a
callsInPlace(EXACTLY_ONCE)contract torunBlockingin code shared between JVM and Native (#4368).- Added a
callsInPlace(EXACTLY_ONCE)contract tosuspendCancellableCoroutine(#4574).- Fixed
flowOnincorrectly handlingThreadContextElementupdates (#4403).- Fixed exceptions in user-supplied
Thread.UncaughtExceptionHandlerinstances causing the internal coroutines machinery to fail (#4516).- Fixed
CoroutineDispatcher.asSchedulerin the RxJava integration not cancelling outstanding work when aWorkergets cancelled, which led to memory leaks in some scenarios (#4615).- Fixed
SharedFlowentering an invalid state when a subscriber and an emitter are cancelled simultaneously (#4583).- Fixed an R8 optimization leading to
shareIn/stateIncoroutines getting garbage-collected (#4646). Thanks,@solevic!Small additions
- Added
CompletableDeferred.asDeferredfor obtaining a read-onlyDeferredview (#4408).- Added
SharedFlow.asFlowfor obtaining aFlowview with hidden hot flow semantics (#4530). Thanks,@g000sha256!- Added a
StateFlow.collectLatestoverload returningNothingto assist with finding unreachable code (#4454).- Added
ReceiveChannel.consumeTofor consuming aReceiveChannelinto aMutableCollection(#4520).- Added a
StateFlow<T>.onSubscriptionoverload returning aStateFlow<T>, similar toSharedFlow<T>.onSubscriptionreturningSharedFlow<T>(#4275). Thanks,@xit0c!- Added terminal
Flowoperators for collecting aFlowto aMap(#1541).Changelog relative to version 1.11.0
No changes, only the version is increased.
1.11.0-rc02
Restored binary compatibility with 1.10.2 and older versions on Wasm/JS for usages of
Promise-related functions (#4661).1.11.0-rc01
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
... (truncated)
Sourced from org.jetbrains.kotlinx:kotlinx-coroutines-core's changelog.
Version 1.11.0
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 newwebtarget. On Wasm/JS, this is a breaking change. Before the change,Promiseon Wasm/JS could work with arbitrary Kotlin types, but now, onlyJsAnysubtypes are accepted (#4563).- Changed handling of coroutine exceptions that can't be propagated on JS and Wasm/JS. Before, exceptions were logged, but now, they are reported to the JS runtime (#4451, #4631).
- Deprecated using
CoroutineDispatcheras the coroutine context key; now,ContinuationInterceptorhas to be used instead (#4333).- Advanced the deprecation levels on
kotlinx-coroutines-testAPIs (#4604).- Added lint functions that mark passing a
Jobto coroutine builders as deprecated (#4435).Bug fixes and improvements
- Added a
callsInPlace(EXACTLY_ONCE)contract torunBlockingin code shared between JVM and Native (#4368).- Added a
callsInPlace(EXACTLY_ONCE)contract tosuspendCancellableCoroutine(#4574).- Fixed
flowOnincorrectly handlingThreadContextElementupdates (#4403).- Fixed exceptions in user-supplied
Thread.UncaughtExceptionHandlerinstances causing the internal coroutines machinery to fail (#4516).- Fixed
CoroutineDispatcher.asSchedulerin the RxJava integration not cancelling outstanding work when aWorkergets cancelled, which led to memory leaks in some scenarios (#4615).- Fixed
SharedFlowentering an invalid state when a subscriber and an emitter are cancelled simultaneously (#4583).- Fixed an R8 optimization leading to
shareIn/stateIncoroutines getting garbage-collected (#4646). Thanks,@solevic!Small additions
- Added
CompletableDeferred.asDeferredfor obtaining a read-onlyDeferredview (#4408).- Added
SharedFlow.asFlowfor obtaining aFlowview with hidden hot flow semantics (#4530). Thanks,@g000sha256!- Added a
StateFlow.collectLatestoverload returningNothingto assist with finding unreachable code (#4454).- Added
ReceiveChannel.consumeTofor consuming aReceiveChannelinto aMutableCollection(#4520).- Added a
StateFlow<T>.onSubscriptionoverload returning aStateFlow<T>, similar toSharedFlow<T>.onSubscriptionreturningSharedFlow<T>(#4275). Thanks,@xit0c!- Added terminal
Flowoperators for collecting aFlowto aMap(#1541).Changelog relative to version 1.11.0
No changes, only the version is increased.
Version 1.11.0-rc02
Restored binary compatibility with 1.10.2 and older versions on Wasm/JS for usages of
Promise-related functions (#4661).Version 1.11.0-rc01
Various
... (truncated)
8564f65
Version 1.11.0a4c6af9
Merge remote-tracking branch 'origin/master' into developef917b4
KT-84955: mark apple x64 tagets as deprecated error (#4645)5ebc421
Update the release procedure description (#4670)95f46a0
Remove old maven repository settings (#4672)b4f4f0a
Fix package name of ToMapCollectionSamplesTest. (#4674)86738dc
Added templates to the issue creation wizard (#4654)330fcc2
Version 1.11.0-rc02e31cef6
Merge remote-tracking branch 'origin/master' into developdc6e9f6
Restore Promise-related functions on Wasm/JS as HIDDEN (#4661)