Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): Bump kotlinCoroutinesVersion from 1.7.3 to 1.8.0 (#79)
Bumps `kotlinCoroutinesVersion` from 1.7.3 to 1.8.0. Updates `org.jetbrains.kotlinx:kotlinx-coroutines-core` from 1.7.3 to 1.8.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/Kotlin/kotlinx.coroutines/releases">org.jetbrains.kotlinx:kotlinx-coroutines-core's releases</a>.</em></p> <blockquote> <h2>1.8.0</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li>Fixed a bug that caused <code>Flow</code> operators that limit cancel the upstream flow to forget that they were already finished if there is another such operator upstream (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4035">#4035</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>).</li> <li><code>kotlinx-coroutines-debug</code> is published with the correct Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li><code>kotlinx-coroutines-debug</code> no longer requires manually setting <code>DebugProbes.enableCoroutineCreationStackTraces</code> to <code>false</code>, it's the default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3783">#3783</a>).</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> <h2>1.8.0-RC2</h2> <ul> <li>Fixed a bug introduced in 1.8.0-RC where <code>Mutex.onLock</code> would not unlock if a non-local return was performed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3985">#3985</a>).</li> <li>Fixed a bug introduced in 1.8.0-RC where depending on kotlinx-coroutines in Native code failed with a compilation error <code>Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop"</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3968">#3968</a>).</li> <li>Small documentation fixes.</li> </ul> <h2>1.8.0-RC</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li><code>kotlinx-coroutines-debug</code> is published with the incorrect Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md">org.jetbrains.kotlinx:kotlinx-coroutines-core's changelog</a>.</em></p> <blockquote> <h2>Version 1.8.0</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li>Fixed a bug that caused <code>Flow</code> operators that limit cancel the upstream flow to forget that they were already finished if there is another such operator upstream (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4035">#4035</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>)</li> <li><code>kotlinx-coroutines-debug</code> is published with the correct Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li><code>kotlinx-coroutines-debug</code> no longer requires manually setting <code>DebugProbes.enableCoroutineCreationStackTraces</code> to <code>false</code>, it's the default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3783">#3783</a>).</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> <h3>Changelog relative to version 1.8.0-RC2</h3> <ul> <li><code>kotlinx-coroutines-debug</code> no longer requires manually setting <code>DebugProbes.enableCoroutineCreationStackTraces</code> to <code>false</code>, it's the default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3783">#3783</a>).</li> <li>Fixed a bug that caused <code>Flow</code> operators that limit cancel the upstream flow to forget that they were already finished if there is another such operator upstream (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4035">#4035</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>)</li> <li>Small documentation fixes.</li> </ul> <h2>Version 1.8.0-RC2</h2> <ul> <li>Fixed a bug introduced in 1.8.0-RC where <code>Mutex.onLock</code> would not unlock if a non-local return was performed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3985">#3985</a>).</li> <li>Fixed a bug introduced in 1.8.0-RC where depending on kotlinx-coroutines in Native code failed with a compilation error <code>Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop"</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3968">#3968</a>).</li> <li>Small documentation fixes.</li> </ul> <h2>Version 1.8.0-RC</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li><code>kotlinx-coroutines-debug</code> is published with the correct Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/8c516f5ab1fcc39629d2838489598135eedd7b80"><code>8c516f5</code></a> Version 1.8.0</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/90d9a30269ed5d601cd697f8308c3733a061dd16"><code>90d9a30</code></a> Disable DebugProbes.enableCreationStackTraces by default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4028">#4028</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/c5a579e2534a89f03be2f154a21e3963b21e51a9"><code>c5a579e</code></a> Merge pull request <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4042">#4042</a> from Kotlin/dk-doc-improvements</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/83fa0b4f597befd4c52423aca072bc7db88d12b2"><code>83fa0b4</code></a> Supply MDC context propagation with examples.</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/1d044524c6be8ec7d9d3ca6ceb04d20980b9797c"><code>1d04452</code></a> Revisit SupervisorScope, supervisorScope, and coroutineScope docs</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/17bae3f10a2564777c7a9d6cf7e527de53a95a71"><code>17bae3f</code></a> Don't say that job completion causes <code>CancellationException</code></li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/92df6e19a502bc667e2df74a3ae5823d5ed79896"><code>92df6e1</code></a> Reword the prompt cancellation guarantee</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/8eb49638c75a0f0dab205a6c58ea6a97b790fbc3"><code>8eb4963</code></a> Improve the explanation of how <code>await</code> throws exceptions</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/fdc08186096b9dec2c8188f552f78c22dee60133"><code>fdc0818</code></a> Clarify that using <code>runBlocking</code> in <code>suspend</code> functions is allowed</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/d0dabb9be28ca8305092a55d2f1b3c20bdc0458a"><code>d0dabb9</code></a> Ensure that flow operators propagate the cancellation exceptions (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>)</li> <li>Additional commits viewable in <a href="https://github.com/Kotlin/kotlinx.coroutines/compare/1.7.3...1.8.0">compare view</a></li> </ul> </details> <br /> Updates `org.jetbrains.kotlinx:kotlinx-coroutines-jdk8` from 1.7.3 to 1.8.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/Kotlin/kotlinx.coroutines/releases">org.jetbrains.kotlinx:kotlinx-coroutines-jdk8's releases</a>.</em></p> <blockquote> <h2>1.8.0</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li>Fixed a bug that caused <code>Flow</code> operators that limit cancel the upstream flow to forget that they were already finished if there is another such operator upstream (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4035">#4035</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>).</li> <li><code>kotlinx-coroutines-debug</code> is published with the correct Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li><code>kotlinx-coroutines-debug</code> no longer requires manually setting <code>DebugProbes.enableCoroutineCreationStackTraces</code> to <code>false</code>, it's the default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3783">#3783</a>).</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> <h2>1.8.0-RC2</h2> <ul> <li>Fixed a bug introduced in 1.8.0-RC where <code>Mutex.onLock</code> would not unlock if a non-local return was performed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3985">#3985</a>).</li> <li>Fixed a bug introduced in 1.8.0-RC where depending on kotlinx-coroutines in Native code failed with a compilation error <code>Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop"</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3968">#3968</a>).</li> <li>Small documentation fixes.</li> </ul> <h2>1.8.0-RC</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li><code>kotlinx-coroutines-debug</code> is published with the incorrect Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md">org.jetbrains.kotlinx:kotlinx-coroutines-jdk8's changelog</a>.</em></p> <blockquote> <h2>Version 1.8.0</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li>Fixed a bug that caused <code>Flow</code> operators that limit cancel the upstream flow to forget that they were already finished if there is another such operator upstream (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4035">#4035</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>)</li> <li><code>kotlinx-coroutines-debug</code> is published with the correct Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li><code>kotlinx-coroutines-debug</code> no longer requires manually setting <code>DebugProbes.enableCoroutineCreationStackTraces</code> to <code>false</code>, it's the default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3783">#3783</a>).</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> <h3>Changelog relative to version 1.8.0-RC2</h3> <ul> <li><code>kotlinx-coroutines-debug</code> no longer requires manually setting <code>DebugProbes.enableCoroutineCreationStackTraces</code> to <code>false</code>, it's the default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3783">#3783</a>).</li> <li>Fixed a bug that caused <code>Flow</code> operators that limit cancel the upstream flow to forget that they were already finished if there is another such operator upstream (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4035">#4035</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>)</li> <li>Small documentation fixes.</li> </ul> <h2>Version 1.8.0-RC2</h2> <ul> <li>Fixed a bug introduced in 1.8.0-RC where <code>Mutex.onLock</code> would not unlock if a non-local return was performed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3985">#3985</a>).</li> <li>Fixed a bug introduced in 1.8.0-RC where depending on kotlinx-coroutines in Native code failed with a compilation error <code>Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop"</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3968">#3968</a>).</li> <li>Small documentation fixes.</li> </ul> <h2>Version 1.8.0-RC</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li><code>kotlinx-coroutines-debug</code> is published with the correct Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/8c516f5ab1fcc39629d2838489598135eedd7b80"><code>8c516f5</code></a> Version 1.8.0</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/90d9a30269ed5d601cd697f8308c3733a061dd16"><code>90d9a30</code></a> Disable DebugProbes.enableCreationStackTraces by default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4028">#4028</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/c5a579e2534a89f03be2f154a21e3963b21e51a9"><code>c5a579e</code></a> Merge pull request <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4042">#4042</a> from Kotlin/dk-doc-improvements</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/83fa0b4f597befd4c52423aca072bc7db88d12b2"><code>83fa0b4</code></a> Supply MDC context propagation with examples.</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/1d044524c6be8ec7d9d3ca6ceb04d20980b9797c"><code>1d04452</code></a> Revisit SupervisorScope, supervisorScope, and coroutineScope docs</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/17bae3f10a2564777c7a9d6cf7e527de53a95a71"><code>17bae3f</code></a> Don't say that job completion causes <code>CancellationException</code></li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/92df6e19a502bc667e2df74a3ae5823d5ed79896"><code>92df6e1</code></a> Reword the prompt cancellation guarantee</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/8eb49638c75a0f0dab205a6c58ea6a97b790fbc3"><code>8eb4963</code></a> Improve the explanation of how <code>await</code> throws exceptions</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/fdc08186096b9dec2c8188f552f78c22dee60133"><code>fdc0818</code></a> Clarify that using <code>runBlocking</code> in <code>suspend</code> functions is allowed</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/d0dabb9be28ca8305092a55d2f1b3c20bdc0458a"><code>d0dabb9</code></a> Ensure that flow operators propagate the cancellation exceptions (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>)</li> <li>Additional commits viewable in <a href="https://github.com/Kotlin/kotlinx.coroutines/compare/1.7.3...1.8.0">compare view</a></li> </ul> </details> <br /> Updates `org.jetbrains.kotlinx:kotlinx-coroutines-test` from 1.7.3 to 1.8.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/Kotlin/kotlinx.coroutines/releases">org.jetbrains.kotlinx:kotlinx-coroutines-test's releases</a>.</em></p> <blockquote> <h2>1.8.0</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li>Fixed a bug that caused <code>Flow</code> operators that limit cancel the upstream flow to forget that they were already finished if there is another such operator upstream (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4035">#4035</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>).</li> <li><code>kotlinx-coroutines-debug</code> is published with the correct Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li><code>kotlinx-coroutines-debug</code> no longer requires manually setting <code>DebugProbes.enableCoroutineCreationStackTraces</code> to <code>false</code>, it's the default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3783">#3783</a>).</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> <h2>1.8.0-RC2</h2> <ul> <li>Fixed a bug introduced in 1.8.0-RC where <code>Mutex.onLock</code> would not unlock if a non-local return was performed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3985">#3985</a>).</li> <li>Fixed a bug introduced in 1.8.0-RC where depending on kotlinx-coroutines in Native code failed with a compilation error <code>Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop"</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3968">#3968</a>).</li> <li>Small documentation fixes.</li> </ul> <h2>1.8.0-RC</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li><code>kotlinx-coroutines-debug</code> is published with the incorrect Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md">org.jetbrains.kotlinx:kotlinx-coroutines-test's changelog</a>.</em></p> <blockquote> <h2>Version 1.8.0</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li>Fixed a bug that caused <code>Flow</code> operators that limit cancel the upstream flow to forget that they were already finished if there is another such operator upstream (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4035">#4035</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>)</li> <li><code>kotlinx-coroutines-debug</code> is published with the correct Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li><code>kotlinx-coroutines-debug</code> no longer requires manually setting <code>DebugProbes.enableCoroutineCreationStackTraces</code> to <code>false</code>, it's the default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3783">#3783</a>).</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> <h3>Changelog relative to version 1.8.0-RC2</h3> <ul> <li><code>kotlinx-coroutines-debug</code> no longer requires manually setting <code>DebugProbes.enableCoroutineCreationStackTraces</code> to <code>false</code>, it's the default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3783">#3783</a>).</li> <li>Fixed a bug that caused <code>Flow</code> operators that limit cancel the upstream flow to forget that they were already finished if there is another such operator upstream (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4035">#4035</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>)</li> <li>Small documentation fixes.</li> </ul> <h2>Version 1.8.0-RC2</h2> <ul> <li>Fixed a bug introduced in 1.8.0-RC where <code>Mutex.onLock</code> would not unlock if a non-local return was performed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3985">#3985</a>).</li> <li>Fixed a bug introduced in 1.8.0-RC where depending on kotlinx-coroutines in Native code failed with a compilation error <code>Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop"</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3968">#3968</a>).</li> <li>Small documentation fixes.</li> </ul> <h2>Version 1.8.0-RC</h2> <ul> <li>Implement the library for the Web Assembly (Wasm) for JavaScript (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3713">#3713</a>). Thanks <a href="https://github.com/igoriakovlev"><code>@igoriakovlev</code></a>!</li> <li>On Android, ensure that <code>Dispatchers.Main != Dispatchers.Main.immediate</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3545">#3545</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3963">#3963</a>).</li> <li><code>kotlinx-coroutines-debug</code> is published with the correct Java 9 module info (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3944">#3944</a>).</li> <li>Major Kotlin version update: was 1.8.20, became 1.9.21.</li> <li><code>kotlinx-coroutines-test</code>: set the default timeout of <code>runTest</code> to 60 seconds, added the ability to configure it on the JVM with the <code>kotlinx.coroutines.test.default_timeout=10s</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>kotlinx-coroutines-test</code>: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3800">#3800</a>).</li> <li><code>delay(Duration)</code> rounds nanoseconds up to whole milliseconds and not down (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3920">#3920</a>). Thanks <a href="https://github.com/kevincianfarini"><code>@kevincianfarini</code></a>!</li> <li><code>Dispatchers.Default</code> and the default thread for background work are guaranteed to use the same context classloader as the object containing it them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3832">#3832</a>).</li> <li>It is guaranteed that by the time <code>SharedFlow.collect</code> suspends for the first time, it's registered as a subscriber for that <code>SharedFlow</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3885">#3885</a>). Before, it was also true, but not documented.</li> <li>Atomicfu version is updated to 0.23.1, and Kotlin/Native atomic transformations are enabled, reducing the footprint of coroutine-heavy code (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3954">#3954</a>).</li> <li>Added a workaround for miscompilation of <code>withLock</code> on JS (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3881">#3881</a>). Thanks <a href="https://github.com/CLOVIS-AI"><code>@CLOVIS-AI</code></a>!</li> <li>Small tweaks and documentation fixes.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/8c516f5ab1fcc39629d2838489598135eedd7b80"><code>8c516f5</code></a> Version 1.8.0</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/90d9a30269ed5d601cd697f8308c3733a061dd16"><code>90d9a30</code></a> Disable DebugProbes.enableCreationStackTraces by default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4028">#4028</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/c5a579e2534a89f03be2f154a21e3963b21e51a9"><code>c5a579e</code></a> Merge pull request <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4042">#4042</a> from Kotlin/dk-doc-improvements</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/83fa0b4f597befd4c52423aca072bc7db88d12b2"><code>83fa0b4</code></a> Supply MDC context propagation with examples.</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/1d044524c6be8ec7d9d3ca6ceb04d20980b9797c"><code>1d04452</code></a> Revisit SupervisorScope, supervisorScope, and coroutineScope docs</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/17bae3f10a2564777c7a9d6cf7e527de53a95a71"><code>17bae3f</code></a> Don't say that job completion causes <code>CancellationException</code></li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/92df6e19a502bc667e2df74a3ae5823d5ed79896"><code>92df6e1</code></a> Reword the prompt cancellation guarantee</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/8eb49638c75a0f0dab205a6c58ea6a97b790fbc3"><code>8eb4963</code></a> Improve the explanation of how <code>await</code> throws exceptions</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/fdc08186096b9dec2c8188f552f78c22dee60133"><code>fdc0818</code></a> Clarify that using <code>runBlocking</code> in <code>suspend</code> functions is allowed</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/d0dabb9be28ca8305092a55d2f1b3c20bdc0458a"><code>d0dabb9</code></a> Ensure that flow operators propagate the cancellation exceptions (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4038">#4038</a>)</li> <li>Additional commits viewable in <a href="https://github.com/Kotlin/kotlinx.coroutines/compare/1.7.3...1.8.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
- Loading branch information