You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Version 1.6.0
4
4
5
-
Note that this is a full changelog relative to 1.5.2 version. Changelog relative to 1.6.0-RC3 can be found in the end.
5
+
Note that this is a full changelog relative to the 1.5.2 version. Changelog relative to 1.6.0-RC3 can be found at the end.
6
6
7
7
### kotlinx-coroutines-test rework
8
8
@@ -25,6 +25,7 @@ Note that this is a full changelog relative to 1.5.2 version. Changelog relative
25
25
*`Dispatchers.Main` is now used as the default source of time for `delay` and `withTimeout` when present(#2972).
26
26
* To opt-out from this behaviour, `kotlinx.coroutines.main.delay` system property can be set to `false`.
27
27
* Java target of coroutines build is now 8 instead of 6 (#1589).
28
+
***Source-breaking change**: extension `collect` no longer resolves when used with a non-in-place argument of a functional type. This is a candidate for a fix, uncovered after 1.6.0, see #3107 for the additional details.
This gives you access to the Android [Dispatchers.Main]
@@ -165,7 +149,8 @@ For more details see ["Optimization" section for Android](ui/kotlinx-coroutines-
165
149
The `kotlinx-coroutines-core` artifact contains a resource file that is not required for the coroutines to operate
166
150
normally and is only used by the debugger. To exclude it at no loss of functionality, add the following snippet to the
167
151
`android` block in your Gradle file for the application subproject:
168
-
```groovy
152
+
153
+
```kotlin
169
154
packagingOptions {
170
155
resources.excludes +="DebugProbesKt.bin"
171
156
}
@@ -177,7 +162,8 @@ Core modules of `kotlinx.coroutines` are also available for
177
162
[Kotlin/JS](https://kotlinlang.org/docs/reference/js-overview.html) and [Kotlin/Native](https://kotlinlang.org/docs/reference/native-overview.html).
178
163
179
164
In common code that should get compiled for different platforms, you can add a dependency to `kotlinx-coroutines-core` right to the `commonMain` source set:
Copy file name to clipboardExpand all lines: kotlinx-coroutines-test/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ This package provides utilities for efficiently testing coroutines.
11
11
|[runTest]| Runs the test code, automatically skipping delays and handling uncaught exceptions. |
12
12
|[TestCoroutineScheduler]| The shared source of virtual time, used for controlling execution order and skipping delays. |
13
13
|[TestScope]| A [CoroutineScope] that integrates with [runTest], providing access to [TestCoroutineScheduler]. |
14
-
|[TestDispatcher]| A [CoroutineDispatcher]that whose delays are controlled by a [TestCoroutineScheduler]. |
14
+
|[TestDispatcher]| A [CoroutineDispatcher] whose delays are controlled by a [TestCoroutineScheduler]. |
15
15
|[Dispatchers.setMain]| Mocks the main dispatcher using the provided one. If mocked with a [TestDispatcher], its [TestCoroutineScheduler] is used everywhere by default. |
0 commit comments