@@ -203,7 +203,7 @@ I'm not blocked 3
203203
204204Notice the following differences in the code with the [ Flow] from the earlier examples:
205205
206- * A builder function for [ Flow] type is called [ flow] .
206+ * A builder function for [ Flow] type is called [ flow] [ _flow ] .
207207* Code inside the ` flow { ... } ` builder block can suspend.
208208* The ` simple ` function is no longer marked with ` suspend ` modifier.
209209* Values are _ emitted_ from the flow using [ emit] [ FlowCollector.emit ] function.
@@ -214,7 +214,7 @@ thread is blocked in this case.
214214
215215### Flows are cold
216216
217- Flows are _ cold_ streams similar to sequences &mdash ; the code inside a [ flow] builder does not
217+ Flows are _ cold_ streams similar to sequences &mdash ; the code inside a [ flow] [ _flow ] builder does not
218218run until the flow is collected. This becomes clear in the following example:
219219
220220<div class =" sample " markdown =" 1 " theme =" idea " data-min-compiler-version =" 1.3 " >
@@ -1785,7 +1785,7 @@ coroutine only without cancelling the whole scope or to [join][Job.join] it.
17851785
17861786### Flow cancellation checks
17871787
1788- For convenience, the [ flow] builder performs additional [ ensureActive] checks for cancellation on each emitted value.
1788+ For convenience, the [ flow] [ _flow ] builder performs additional [ ensureActive] checks for cancellation on each emitted value.
17891789It means that a busy loop emitting from a ` flow { ... } ` is cancellable:
17901790
17911791<div class =" sample " markdown =" 1 " theme =" idea " data-min-compiler-version =" 1.3 " >
@@ -1944,7 +1944,7 @@ Integration modules include conversions from and to `Flow`, integration with Rea
19441944[ CancellationException ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-cancellation-exception/index.html
19451945<!-- - INDEX kotlinx.coroutines.flow -->
19461946[ Flow ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html
1947- [ flow ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/flow.html
1947+ [ _flow ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/flow.html
19481948[ FlowCollector.emit ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow-collector/emit.html
19491949[ collect ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/collect.html
19501950[ flowOf ] : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/flow-of.html
0 commit comments