File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
common/src/flow/operators Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export JDK_18="$JAVA_HOME"
94
94
95
95
### Running the Knit tool
96
96
97
- * Use [ Knit] ( https://github.com/Kotlin/kotlinx-knit/blob/master /README.md ) for updates to documentation:
97
+ * Use [ Knit] ( https://github.com/Kotlin/kotlinx-knit/blob/main /README.md ) for updates to documentation:
98
98
* Run ` ./gradlew knit ` to update example files, links, tables of content.
99
99
* Commit updated documents and examples together with other changes.
100
100
Original file line number Diff line number Diff line change @@ -152,10 +152,12 @@ suspend fun doWorld() = coroutineScope { // this: CoroutineScope
152
152
153
153
This code also prints:
154
154
155
- <!-- - TEST
155
+ ``` text
156
156
Hello
157
157
World!
158
- -->
158
+ ```
159
+
160
+ <!-- - TEST -->
159
161
160
162
## Scope builder and concurrency
161
163
@@ -166,7 +168,7 @@ Let's launch two concurrent coroutines inside a `doWorld` suspending function:
166
168
import kotlinx.coroutines.*
167
169
168
170
// sampleStart
169
- // Sequentially executes doWorld followed by "Hello "
171
+ // Sequentially executes doWorld followed by "Done "
170
172
fun main () = runBlocking {
171
173
doWorld()
172
174
println (" Done" )
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ import kotlin.jvm.*
68
68
* ### Upstream completion and error handling
69
69
*
70
70
* **Normal completion of the upstream flow has no effect on subscribers**, and the sharing coroutine continues to run. If a
71
- * a strategy like [SharingStarted.WhileSubscribed] is used, then the upstream can get restarted again. If a special
71
+ * strategy like [SharingStarted.WhileSubscribed] is used, then the upstream can get restarted again. If a special
72
72
* action on upstream completion is needed, then an [onCompletion] operator can be used before the
73
73
* `shareIn` operator to emit a special value in this case, like this:
74
74
*
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ package kotlinx.coroutines.guide.exampleBasic04
7
7
8
8
import kotlinx.coroutines.*
9
9
10
- // Sequentially executes doWorld followed by "Hello "
10
+ // Sequentially executes doWorld followed by "Done "
11
11
fun main () = runBlocking {
12
12
doWorld()
13
13
println (" Done" )
You can’t perform that action at this time.
0 commit comments