diff options
author | Dmitry Khalanskiy <Dmitry.Khalanskiy@jetbrains.com> | 2024-05-28 16:12:14 +0200 |
---|---|---|
committer | Dmitry Khalanskiy <Dmitry.Khalanskiy@jetbrains.com> | 2024-05-28 16:49:42 +0200 |
commit | 1bffe67a32d9d0285320f5b23fa94bc2b5f2b92e (patch) | |
tree | 4c43854db70eff6015c44e0e07e2f3f1a52636ef | |
parent | 4be589958c8884a304897a6d9d89fae0311b8104 (diff) | |
download | kotlinx.coroutines-upstream-master.tar.gz |
Version 1.9.0-RCupstream-master
-rw-r--r-- | CHANGES.md | 18 | ||||
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | gradle.properties | 2 | ||||
-rw-r--r-- | integration-testing/gradle.properties | 2 | ||||
-rw-r--r-- | kotlinx-coroutines-debug/README.md | 2 | ||||
-rw-r--r-- | kotlinx-coroutines-test/README.md | 2 | ||||
-rw-r--r-- | ui/coroutines-guide-ui.md | 2 |
7 files changed, 29 insertions, 11 deletions
@@ -1,5 +1,23 @@ # Change log for kotlinx.coroutines +## Version 1.9.0-RC + +* Kotlin was updated to 2.0 (#4137). +* Introduced the `Flow<T>.chunked(size: Int): Flow<List<T>>` operator that groups emitted values into groups of the given size (#1290). +* Closeable dispatchers are instances of `AutoCloseable` now (#4123). +* `limitedParallelism` now optionally accepts the name of the dispatcher view for easier debugging (#4023). +* Marked the classes and interfaces that are not supposed to be inherited from with the new `InternalForInheritanceCoroutinesApi` opt-in (#3770). +* Marked the classes and interfaces inheriting from which is not stable with the new `ExperimentalForInheritanceCoroutinesApi` opt-in (#3770). +* Wasm/WASI target support (#4064). Thanks, @igoriakovlev! +* Promoted `CoroutineDispatcher.limitedParallelism` to stable (#3864). +* Promoted `CancellableContinuation.resume` with an `onCancellation` lambda to stable, providing extra arguments to the lambda (#4088). +* Ensured a more intuitive ordering of tasks in `runBlocking` (#4134). +* Simplified the internal implementation of `Job` (#4053). +* Fixed a bug that prevented non-Android `Dispatchers.Main` from initializing when the Firebase dependency is used (#3914). +* Calling `hasNext` on a `Channel`'s iterator is idempotent (#4065). Thanks, @gitpaxultek! +* `CoroutineScope()` created without an explicit dispatcher uses `Dispatchers.Default` on Native (#4074). Thanks, @whyoleg! +* Small tweaks and documentation fixes. + ## Version 1.8.1 * Remove the `@ExperimentalTime` annotation from usages of `TimeSource` (#4046). Thanks, @hfhbd! @@ -3,7 +3,7 @@ [![Kotlin Stable](https://kotl.in/badges/stable.svg)](https://kotlinlang.org/docs/components-stability.html) [![JetBrains official project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub) [![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0) -[![Download](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.8.1)](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.8.1) +[![Download](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.9.0-RC)](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.9.0-RC) [![Kotlin](https://img.shields.io/badge/kotlin-2.0.0-blue.svg?logo=kotlin)](http://kotlinlang.org) [![Slack channel](https://img.shields.io/badge/chat-slack-green.svg?logo=slack)](https://kotlinlang.slack.com/messages/coroutines/) @@ -85,7 +85,7 @@ Add dependencies (you can also add other modules that you need): <dependency> <groupId>org.jetbrains.kotlinx</groupId> <artifactId>kotlinx-coroutines-core</artifactId> - <version>1.8.1</version> + <version>1.9.0-RC</version> </dependency> ``` @@ -103,7 +103,7 @@ Add dependencies (you can also add other modules that you need): ```kotlin dependencies { - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC") } ``` @@ -133,7 +133,7 @@ Add [`kotlinx-coroutines-android`](ui/kotlinx-coroutines-android) module as a dependency when using `kotlinx.coroutines` on Android: ```kotlin -implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1") +implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0-RC") ``` This gives you access to the Android [Dispatchers.Main] @@ -168,7 +168,7 @@ In common code that should get compiled for different platforms, you can add a d ```kotlin commonMain { dependencies { - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC") } } ``` @@ -178,7 +178,7 @@ Platform-specific dependencies are recommended to be used only for non-multiplat #### JS Kotlin/JS version of `kotlinx.coroutines` is published as -[`kotlinx-coroutines-core-js`](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-js/1.8.1) +[`kotlinx-coroutines-core-js`](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-js/1.9.0-RC) (follow the link to get the dependency declaration snippet). #### Native diff --git a/gradle.properties b/gradle.properties index f0de7dce..ab990476 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ # Kotlin -version=1.8.1-SNAPSHOT +version=1.9.0-RC-SNAPSHOT group=org.jetbrains.kotlinx kotlin_version=2.0.0 kotlin_language_version=2.0 diff --git a/integration-testing/gradle.properties b/integration-testing/gradle.properties index 821dfa1e..b972b446 100644 --- a/integration-testing/gradle.properties +++ b/integration-testing/gradle.properties @@ -1,5 +1,5 @@ kotlin_version=2.0.0 -coroutines_version=1.8.1-SNAPSHOT +coroutines_version=1.9.0-RC-SNAPSHOT asm_version=9.3 kotlin.code.style=official diff --git a/kotlinx-coroutines-debug/README.md b/kotlinx-coroutines-debug/README.md index 24a2fa8d..2a6efb1b 100644 --- a/kotlinx-coroutines-debug/README.md +++ b/kotlinx-coroutines-debug/README.md @@ -61,7 +61,7 @@ stacktraces will be dumped to the console. ### Using as JVM agent Debug module can also be used as a standalone JVM agent to enable debug probes on the application startup. -You can run your application with an additional argument: `-javaagent:kotlinx-coroutines-debug-1.8.1.jar`. +You can run your application with an additional argument: `-javaagent:kotlinx-coroutines-debug-1.9.0-RC.jar`. Additionally, on Linux and Mac OS X you can use `kill -5 $pid` command in order to force your application to print all alive coroutines. When used as Java agent, `"kotlinx.coroutines.debug.enable.creation.stack.trace"` system property can be used to control [DebugProbes.enableCreationStackTraces] along with agent startup. diff --git a/kotlinx-coroutines-test/README.md b/kotlinx-coroutines-test/README.md index 224f78c4..4e6f4dd1 100644 --- a/kotlinx-coroutines-test/README.md +++ b/kotlinx-coroutines-test/README.md @@ -26,7 +26,7 @@ Provided [TestDispatcher] implementations: Add `kotlinx-coroutines-test` to your project test dependencies: ``` dependencies { - testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.1' + testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0-RC' } ``` diff --git a/ui/coroutines-guide-ui.md b/ui/coroutines-guide-ui.md index 3b2087d6..56a9e26e 100644 --- a/ui/coroutines-guide-ui.md +++ b/ui/coroutines-guide-ui.md @@ -110,7 +110,7 @@ Add dependencies on `kotlinx-coroutines-android` module to the `dependencies { . `app/build.gradle` file: ```groovy -implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1" +implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0-RC" ``` You can clone [kotlinx.coroutines](https://github.com/Kotlin/kotlinx.coroutines) project from GitHub onto your |