Sourced from org.jetbrains.kotlinx:kotlinx-coroutines-android's releases.
1.7.2
Bug fixes and improvements
- Coroutines debugger no longer keeps track of coroutines with empty coroutine context (https://github.com/facebook/flipper/issues/3782).
CopyableThreadContextElementnow properly copies an element when crossing the coroutine boundary inflowOn(https://github.com/facebook/flipper/issues/3787). Thanks@wanyingd1996!- Coroutine timeouts no longer prevent K/N
newSingleThreadContextfrom closing (https://github.com/facebook/flipper/issues/3768).- A non-linearizability in
MutexduringtryLock/unlocksequence with owners is fixed (https://github.com/facebook/flipper/issues/3745).- Atomicfu version is updated to 0.21.0.
1.7.1
Bug fixes and improvements
- Special characters in coroutine names in JSON dumps are supported (https://github.com/facebook/flipper/issues/3747)
- The binary compatibility of the experimental overload of
runTestis restored (https://github.com/facebook/flipper/issues/3673)- Channels that don't use
onUndeliveredElementnow allocate less memory (https://github.com/facebook/flipper/issues/3646)1.7.0
Core API significant improvements
- New
Channelimplementation with significant performance improvements across the API (https://github.com/facebook/flipper/issues/3621).- New
selectoperator implementation: faster, more lightweight, and more robust (https://github.com/facebook/flipper/issues/3020).MutexandSemaphorenow share the same underlying data structure (https://github.com/facebook/flipper/issues/3020).Dispatchers.IOis added to K/N (https://github.com/facebook/flipper/issues/3205)
newFixedThreadPoolandDispatchers.Defaultimplementations on K/N were wholly rewritten to support graceful growth under load (https://github.com/facebook/flipper/issues/3595).kotlinx-coroutines-testrework:
- Add the
timeoutparameter torunTestfor the whole-test timeout, 10 seconds by default (https://github.com/facebook/flipper/issues/3270). This replaces the configuration of quiescence timeouts, which is now deprecated (https://github.com/facebook/flipper/issues/3603).- The
withTimeoutexception messages indicate if the timeout used the virtual time (https://github.com/facebook/flipper/issues/3588).TestCoroutineScheduler,runTest, andTestScopeAPI are promoted to stable (https://github.com/facebook/flipper/issues/3622).runTestnow also fails if there were uncaught exceptions in coroutines not inherited from the test coroutine (https://github.com/facebook/flipper/issues/1205).Breaking changes
- Old K/N memory model is no longer supported (https://github.com/facebook/flipper/issues/3375).
- New generic upper bounds were added to reactive integration API where the language since 1.8.0 dictates (https://github.com/facebook/flipper/issues/3393).
kotlinx-coroutines-coreandkotlinx-coroutines-jdk8artifacts were merged into a single artifact (https://github.com/facebook/flipper/issues/3268).- Artificial stackframes in stacktrace recovery no longer contain the
\bsymbol and are now navigable in IDE and supplied with proper documentation (https://github.com/facebook/flipper/issues/2291).CoroutineContext.isActivereturnstruefor contexts without any job in them (https://github.com/facebook/flipper/issues/3300).Bug fixes and improvements
- Kotlin version is updated to 1.8.20
- Atomicfu version is updated to 0.20.2.
JavaFxversion is updated to 17.0.2 inkotlinx-coroutines-javafx(https://github.com/facebook/flipper/issues/3671)..- JPMS is supported (https://github.com/facebook/flipper/issues/2237). Thanks
@lion7!BroadcastChanneland all the corresponding API are deprecated (https://github.com/facebook/flipper/issues/2680).- Added all supported K/N targets (https://github.com/facebook/flipper/issues/3601, https://github.com/facebook/flipper/issues/812, https://github.com/facebook/flipper/issues/855).
- K/N
Dispatchers.Defaultis backed by the number of threads equal to the number of available cores (https://github.com/facebook/flipper/issues/3366).- Fixed an issue where some coroutines' internal exceptions were not properly serializable (https://github.com/facebook/flipper/issues/3328).
- Introduced
Job.parentAPI (https://github.com/facebook/flipper/issues/3201).- Fixed a bug when
TestSchedulerleaked cancelled jobs (https://github.com/facebook/flipper/issues/3398).
... (truncated)
Sourced from org.jetbrains.kotlinx:kotlinx-coroutines-android's changelog.
Version 1.7.2
Bug fixes and improvements
- Coroutines debugger no longer keeps track of coroutines with empty coroutine context (https://github.com/facebook/flipper/issues/3782).
CopyableThreadContextElementnow properly copies an element when crossing the coroutine boundary inflowOn(https://github.com/facebook/flipper/issues/3787). Thanks@wanyingd1996!- Coroutine timeouts no longer prevent K/N
newSingleThreadContextfrom closing (https://github.com/facebook/flipper/issues/3768).- A non-linearizability in
MutexduringtryLock/unlocksequence with owners is fixed (https://github.com/facebook/flipper/issues/3745).- Atomicfu version is updated to 0.21.0.
Version 1.7.1
Bug fixes and improvements
- Special characters in coroutine names in JSON dumps are supported (https://github.com/facebook/flipper/issues/3747)
- The binary compatibility of the experimental overload of
runTestis restored (https://github.com/facebook/flipper/issues/3673)- Channels that don't use
onUndeliveredElementnow allocate less memory (https://github.com/facebook/flipper/issues/3646)Version 1.7.0
Core API significant improvements
- New
Channelimplementation with significant performance improvements across the API (https://github.com/facebook/flipper/issues/3621).- New
selectoperator implementation: faster, more lightweight, and more robust (https://github.com/facebook/flipper/issues/3020).MutexandSemaphorenow share the same underlying data structure (https://github.com/facebook/flipper/issues/3020).Dispatchers.IOis added to K/N (https://github.com/facebook/flipper/issues/3205)
newFixedThreadPoolandDispatchers.Defaultimplementations on K/N were wholly rewritten to support graceful growth under load (https://github.com/facebook/flipper/issues/3595).kotlinx-coroutines-testrework:
- Add the
timeoutparameter torunTestfor the whole-test timeout, 10 seconds by default (https://github.com/facebook/flipper/issues/3270). This replaces the configuration of quiescence timeouts, which is now deprecated (https://github.com/facebook/flipper/issues/3603).- The
withTimeoutexception messages indicate if the timeout used the virtual time (https://github.com/facebook/flipper/issues/3588).TestCoroutineScheduler,runTest, andTestScopeAPI are promoted to stable (https://github.com/facebook/flipper/issues/3622).runTestnow also fails if there were uncaught exceptions in coroutines not inherited from the test coroutine (https://github.com/facebook/flipper/issues/1205).Breaking changes
- Old K/N memory model is no longer supported (https://github.com/facebook/flipper/issues/3375).
- New generic upper bounds were added to reactive integration API where the language since 1.8.0 dictates (https://github.com/facebook/flipper/issues/3393).
kotlinx-coroutines-coreandkotlinx-coroutines-jdk8artifacts were merged into a single artifact (https://github.com/facebook/flipper/issues/3268).- Artificial stackframes in stacktrace recovery no longer contain the
\bsymbol and are now navigable in IDE and supplied with proper documentation (https://github.com/facebook/flipper/issues/2291).CoroutineContext.isActivereturnstruefor contexts without any job in them (https://github.com/facebook/flipper/issues/3300).Bug fixes and improvements
- Kotlin version is updated to 1.8.20
- Atomicfu version is updated to 0.20.2.
JavaFxversion is updated to 17.0.2 inkotlinx-coroutines-javafx(https://github.com/facebook/flipper/issues/3671)..- JPMS is supported (https://github.com/facebook/flipper/issues/2237). Thanks
@lion7!BroadcastChanneland all the corresponding API are deprecated (https://github.com/facebook/flipper/issues/2680).- Added all supported K/N targets (https://github.com/facebook/flipper/issues/3601, https://github.com/facebook/flipper/issues/812, https://github.com/facebook/flipper/issues/855).
- K/N
Dispatchers.Defaultis backed by the number of threads equal to the number of available cores (https://github.com/facebook/flipper/issues/3366).
... (truncated)
5b64a1f Merge pull request https://github.com/facebook/flipper/issues/3797 from Kotlin/version-1.7.271793d9 Version 1.7.2c7545b5 Fix newSingleThreadContext awaiting cancelled scheduled coroutines (https://github.com/facebook/flipper/issues/3769)897599f Merge branch 'master' into developd4f45b6 Do not track coroutines with empty coroutine context in DebugProbes (https://github.com/facebook/flipper/issues/3784)5664713 Formalize the internal IDEA dependencies for binary compatibility (https://github.com/facebook/flipper/issues/3746)c485118 Merge pull request https://github.com/facebook/flipper/issues/3791 from Kotlin/bobova/up-configa241dcf Update atomicfu & binary-compatibility-validator (https://github.com/facebook/flipper/issues/3792)c6a3920 Update user projects config: adapt build script to new TeamCity variablesacc6acd OptIn for ExperimentalNativeApi (https://github.com/facebook/flipper/issues/3788)