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
This gives you access to Android [Dispatchers.Main]
154
-
coroutine dispatcher and also makes sure that in case of crashed coroutine with unhandled exception this
155
-
exception is logged before crashing Android application, similarly to the way uncaught exceptions in
156
-
threads are handled by Android runtime.
153
+
This gives you access to the Android [Dispatchers.Main]
154
+
coroutine dispatcher and also makes sure that in case of a crashed coroutine with an unhandled exception that
155
+
this exception is logged before crashing the Android application, similarly to the way uncaught exceptions in
156
+
threads are handled by the Android runtime.
157
157
158
158
#### R8 and ProGuard
159
159
@@ -164,7 +164,7 @@ For more details see ["Optimization" section for Android](ui/kotlinx-coroutines-
164
164
165
165
The `kotlinx-coroutines-core` artifact contains a resource file that is not required for the coroutines to operate
166
166
normally and is only used by the debugger. To exclude it at no loss of functionality, add the following snippet to the
167
-
`android` block in your gradle file for the application subproject:
167
+
`android` block in your Gradle file for the application subproject:
168
168
```groovy
169
169
packagingOptions {
170
170
exclude "DebugProbesKt.bin"
@@ -176,7 +176,7 @@ packagingOptions {
176
176
Core modules of `kotlinx.coroutines` are also available for
177
177
[Kotlin/JS](https://kotlinlang.org/docs/reference/js-overview.html) and [Kotlin/Native](https://kotlinlang.org/docs/reference/native-overview.html).
178
178
179
-
In common code that should get compiled for different platforms, you can add dependency to `kotlinx-coroutines-core` right to the `commonMain` source set:
179
+
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:
180
180
```groovy
181
181
commonMain {
182
182
dependencies {
@@ -185,7 +185,7 @@ commonMain {
185
185
}
186
186
```
187
187
188
-
No more additional dependencies is needed, platform-specific artifacts will be resolved automatically via Gradle metadata available since Gradle 5.3.
188
+
No more additional dependencies are needed, platform-specific artifacts will be resolved automatically via Gradle metadata available since Gradle 5.3.
189
189
190
190
Platform-specific dependencies are recommended to be used only for non-multiplatform projects that are compiled only for target platform.
191
191
@@ -203,11 +203,11 @@ the target Kotlin/Native platform. [List of currently supported targets](https:/
203
203
204
204
205
205
Only single-threaded code (JS-style) on Kotlin/Native is supported in stable versions.
206
-
Additionally, special `-native-mt` version is released on a regular basis, for the state of multi-threaded coroutines support
206
+
Additionally, a special `-native-mt` version is released on a regular basis, for the state of multi-threaded coroutines support
207
207
please follow the [corresponding issue](https://github.com/Kotlin/kotlinx.coroutines/issues/462) for the additional details.
208
208
209
209
Since Kotlin/Native does not generally provide binary compatibility between versions,
210
-
you should use the same version of Kotlin/Native compiler as was used to build `kotlinx.coroutines`.
210
+
you should use the same version of the Kotlin/Native compiler as was used to build `kotlinx.coroutines`.
Copy file name to clipboardExpand all lines: docs/topics/debug-coroutines-with-idea.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ The tutorial assumes you have prior knowledge of the [coroutines](coroutines-gui
21
21
* Use the [`runBlocking()`](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/run-blocking.html) block to wrap a coroutine.
22
22
* Use the [`async()`](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/async.html) function to create coroutines that compute deferred values `a` and `b`.
23
23
* Use the [`await()`](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-deferred/await.html) function to await the computation result.
24
-
* Use the [`println()`](https://kotlinlang.org//api/latest/jvm/stdlib/stdlib/kotlin.io/println.html) function to print computing status and the result of multiplication to the output.
24
+
* Use the [`println()`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/println.html) function to print computing status and the result of multiplication to the output.
25
25
26
26
```kotlin
27
27
importkotlinx.coroutines.*
@@ -79,4 +79,4 @@ The tutorial assumes you have prior knowledge of the [coroutines](coroutines-gui
79
79
*The second coroutine has computed its value and disappeared.
80
80
*The third coroutine is calculating the value of `b` – it has the **RUNNING** status.
81
81
82
-
UsingIntelliJIDEA debugger, you can dig deeper into each coroutine to debug your code.
82
+
UsingIntelliJIDEA debugger, you can dig deeper into each coroutine to debug your code.
0 commit comments