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.1 (#614)
Bumps `kotlinCoroutinesVersion` from 1.7.3 to 1.8.1. Updates `org.jetbrains.kotlinx:kotlinx-coroutines-core` from 1.7.3 to 1.8.1 <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.1</h2> <ul> <li>Remove the <code>@ExperimentalTime</code> annotation from usages of <code>TimeSource</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4046">#4046</a>). Thanks, <a href="https://github.com/hfhbd"><code>@hfhbd</code></a>!</li> <li>Introduce a workaround for an Android bug that caused an occasional <code>NullPointerException</code> when setting the <code>StateFlow</code> value on old Android devices (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3820">#3820</a>).</li> <li>No longer use <code>kotlin.random.Random</code> as part of <code>Dispatchers.Default</code> and <code>Dispatchers.IO</code> initialization (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4051">#4051</a>).</li> <li><code>Flow.timeout</code> throws the exception with which the channel was closed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4071">#4071</a>).</li> <li>Small tweaks and documentation fixes.</li> </ul> <h2>1.8.1-Beta</h2> <ul> <li>Remove the <code>@ExperimentalTime</code> annotation from usages of <code>TimeSource</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4046">#4046</a>). Thanks, <a href="https://github.com/hfhbd"><code>@hfhbd</code></a>!</li> <li>Attempt a workaround for an Android bug that caused an occasional <code>NullPointerException</code> when setting the <code>StateFlow</code> value on old Android devices (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3820">#3820</a>).</li> <li>No longer use <code>kotlin.random.Random</code> as part of <code>Dispatchers.Default</code> and <code>Dispatchers.IO</code> initialization (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4051">#4051</a>).</li> <li>Small tweaks.</li> </ul> <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.1</h2> <ul> <li>Remove the <code>@ExperimentalTime</code> annotation from usages of <code>TimeSource</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4046">#4046</a>). Thanks, <a href="https://github.com/hfhbd"><code>@hfhbd</code></a>!</li> <li>Introduce a workaround for an Android bug that caused an occasional <code>NullPointerException</code> when setting the <code>StateFlow</code> value on old Android devices (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3820">#3820</a>).</li> <li>No longer use <code>kotlin.random.Random</code> as part of <code>Dispatchers.Default</code> and <code>Dispatchers.IO</code> initialization (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4051">#4051</a>).</li> <li><code>Flow.timeout</code> throws the exception with which the channel was closed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4071">#4071</a>).</li> <li>Small tweaks and documentation fixes.</li> </ul> <h3>Changelog relative to version 1.8.1-Beta</h3> <ul> <li><code>Flow.timeout</code> throws the exception with which the channel was closed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4071">#4071</a>).</li> <li>Small documentation fixes.</li> </ul> <h2>Version 1.8.1-Beta</h2> <ul> <li>Remove the <code>@ExperimentalTime</code> annotation from usages of <code>TimeSource</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4046">#4046</a>). Thanks, <a href="https://github.com/hfhbd"><code>@hfhbd</code></a>!</li> <li>Attempt a workaround for an Android bug that caused an occasional <code>NullPointerException</code> when setting the <code>StateFlow</code> value on old Android devices (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3820">#3820</a>).</li> <li>No longer use <code>kotlin.random.Random</code> as part of <code>Dispatchers.Default</code> and <code>Dispatchers.IO</code> initialization (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4051">#4051</a>).</li> <li>Small tweaks.</li> </ul> <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> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/cd696d3f8f4afdbc735915c2bded974616331b55"><code>cd696d3</code></a> Version 1.8.1</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/c1ba5af8c5d10a3d2f923f89b98f6ab1b394e24d"><code>c1ba5af</code></a> Fix the ticker channel example giving wrong results on the website (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4109">#4109</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/2430d9a799de6fdbe0ce89e5e61e1d8d4cfdfb1e"><code>2430d9a</code></a> Fix broken API reference links to the Project Reactor Javadoc (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4111">#4111</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/f22b229a09fb0a1959c3eb26fccc24bd7cb3fafb"><code>f22b229</code></a> fix the link to <code>Thread.uncaughtExceptionHandler</code></li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/515308dc3d5fe0624f235cb9fd84358e7e59b7a1"><code>515308d</code></a> fix: get rid of horizontal scrolling by splitting the comment and show more c...</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/f8d1821f137cad86561723e8a1a0bf8a3a81fda1"><code>f8d1821</code></a> Fix typo in coroutine-context-and-dispatchers.md (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3941">#3941</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/20707d35acb124fdadbd96eafef4edb8294c2e46"><code>20707d3</code></a> fix: remove <code>sampleStart</code> and <code>sampleEnd</code> comments from example in coroutine-...</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/01485343b4fab3692d0806b4c3706b23c6b04f1d"><code>0148534</code></a> chore: fix identation in example loadContributorsBlocking() (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4085">#4085</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/74774df13a8dd30980a96add574c19b2f2edbfca"><code>74774df</code></a> Docs: reference to The Hitchhiker's Guide to the Galaxy (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4082">#4082</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/d106ac7c362c54fdeffacc6af0b161ed107babaa"><code>d106ac7</code></a> Docs: avoid scrolling sample code; fix test description; add () to functions ...</li> <li>Additional commits viewable in <a href="https://github.com/Kotlin/kotlinx.coroutines/compare/1.7.3...1.8.1">compare view</a></li> </ul> </details> <br /> Updates `org.jetbrains.kotlinx:kotlinx-coroutines-test` from 1.7.3 to 1.8.1 <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.1</h2> <ul> <li>Remove the <code>@ExperimentalTime</code> annotation from usages of <code>TimeSource</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4046">#4046</a>). Thanks, <a href="https://github.com/hfhbd"><code>@hfhbd</code></a>!</li> <li>Introduce a workaround for an Android bug that caused an occasional <code>NullPointerException</code> when setting the <code>StateFlow</code> value on old Android devices (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3820">#3820</a>).</li> <li>No longer use <code>kotlin.random.Random</code> as part of <code>Dispatchers.Default</code> and <code>Dispatchers.IO</code> initialization (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4051">#4051</a>).</li> <li><code>Flow.timeout</code> throws the exception with which the channel was closed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4071">#4071</a>).</li> <li>Small tweaks and documentation fixes.</li> </ul> <h2>1.8.1-Beta</h2> <ul> <li>Remove the <code>@ExperimentalTime</code> annotation from usages of <code>TimeSource</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4046">#4046</a>). Thanks, <a href="https://github.com/hfhbd"><code>@hfhbd</code></a>!</li> <li>Attempt a workaround for an Android bug that caused an occasional <code>NullPointerException</code> when setting the <code>StateFlow</code> value on old Android devices (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3820">#3820</a>).</li> <li>No longer use <code>kotlin.random.Random</code> as part of <code>Dispatchers.Default</code> and <code>Dispatchers.IO</code> initialization (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4051">#4051</a>).</li> <li>Small tweaks.</li> </ul> <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.1</h2> <ul> <li>Remove the <code>@ExperimentalTime</code> annotation from usages of <code>TimeSource</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4046">#4046</a>). Thanks, <a href="https://github.com/hfhbd"><code>@hfhbd</code></a>!</li> <li>Introduce a workaround for an Android bug that caused an occasional <code>NullPointerException</code> when setting the <code>StateFlow</code> value on old Android devices (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3820">#3820</a>).</li> <li>No longer use <code>kotlin.random.Random</code> as part of <code>Dispatchers.Default</code> and <code>Dispatchers.IO</code> initialization (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4051">#4051</a>).</li> <li><code>Flow.timeout</code> throws the exception with which the channel was closed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4071">#4071</a>).</li> <li>Small tweaks and documentation fixes.</li> </ul> <h3>Changelog relative to version 1.8.1-Beta</h3> <ul> <li><code>Flow.timeout</code> throws the exception with which the channel was closed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4071">#4071</a>).</li> <li>Small documentation fixes.</li> </ul> <h2>Version 1.8.1-Beta</h2> <ul> <li>Remove the <code>@ExperimentalTime</code> annotation from usages of <code>TimeSource</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4046">#4046</a>). Thanks, <a href="https://github.com/hfhbd"><code>@hfhbd</code></a>!</li> <li>Attempt a workaround for an Android bug that caused an occasional <code>NullPointerException</code> when setting the <code>StateFlow</code> value on old Android devices (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3820">#3820</a>).</li> <li>No longer use <code>kotlin.random.Random</code> as part of <code>Dispatchers.Default</code> and <code>Dispatchers.IO</code> initialization (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4051">#4051</a>).</li> <li>Small tweaks.</li> </ul> <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> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/cd696d3f8f4afdbc735915c2bded974616331b55"><code>cd696d3</code></a> Version 1.8.1</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/c1ba5af8c5d10a3d2f923f89b98f6ab1b394e24d"><code>c1ba5af</code></a> Fix the ticker channel example giving wrong results on the website (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4109">#4109</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/2430d9a799de6fdbe0ce89e5e61e1d8d4cfdfb1e"><code>2430d9a</code></a> Fix broken API reference links to the Project Reactor Javadoc (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4111">#4111</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/f22b229a09fb0a1959c3eb26fccc24bd7cb3fafb"><code>f22b229</code></a> fix the link to <code>Thread.uncaughtExceptionHandler</code></li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/515308dc3d5fe0624f235cb9fd84358e7e59b7a1"><code>515308d</code></a> fix: get rid of horizontal scrolling by splitting the comment and show more c...</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/f8d1821f137cad86561723e8a1a0bf8a3a81fda1"><code>f8d1821</code></a> Fix typo in coroutine-context-and-dispatchers.md (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3941">#3941</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/20707d35acb124fdadbd96eafef4edb8294c2e46"><code>20707d3</code></a> fix: remove <code>sampleStart</code> and <code>sampleEnd</code> comments from example in coroutine-...</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/01485343b4fab3692d0806b4c3706b23c6b04f1d"><code>0148534</code></a> chore: fix identation in example loadContributorsBlocking() (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4085">#4085</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/74774df13a8dd30980a96add574c19b2f2edbfca"><code>74774df</code></a> Docs: reference to The Hitchhiker's Guide to the Galaxy (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/4082">#4082</a>)</li> <li><a href="https://github.com/Kotlin/kotlinx.coroutines/commit/d106ac7c362c54fdeffacc6af0b161ed107babaa"><code>d106ac7</code></a> Docs: avoid scrolling sample code; fix test description; add () to functions ...</li> <li>Additional commits viewable in <a href="https://github.com/Kotlin/kotlinx.coroutines/compare/1.7.3...1.8.1">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