Skip to content

Commit c2cb529

Browse files
committed
~ "The flow being cold"
1 parent 5cd5580 commit c2cb529

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kotlinx-coroutines-core/common/src/flow/Builders.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import kotlinx.coroutines.flow.internal.unsafeFlow as flow
1717

1818
/**
1919
* Creates a _cold_ flow from the given suspendable [block].
20-
* The flow is _cold_ means that the [block] is called every time a terminal operator is applied to the resulting flow.
20+
* The flow being _cold_ means that the [block] is called every time a terminal operator is applied to the resulting flow.
2121
*
2222
* Example of usage:
2323
*
@@ -149,7 +149,7 @@ private object EmptyFlow : Flow<Nothing> {
149149

150150
/**
151151
* Creates a _cold_ flow that produces values from the given array.
152-
* The flow is _cold_ means that the array components are read every time a terminal operator is applied
152+
* The flow being _cold_ means that the array components are read every time a terminal operator is applied
153153
* to the resulting flow.
154154
*/
155155
public fun <T> Array<T>.asFlow(): Flow<T> = flow {
@@ -160,7 +160,7 @@ public fun <T> Array<T>.asFlow(): Flow<T> = flow {
160160

161161
/**
162162
* Creates a _cold_ flow that produces values from the array.
163-
* The flow is _cold_ means that the array components are read every time a terminal operator is applied
163+
* The flow being _cold_ means that the array components are read every time a terminal operator is applied
164164
* to the resulting flow.
165165
*/
166166
public fun IntArray.asFlow(): Flow<Int> = flow {
@@ -171,7 +171,7 @@ public fun IntArray.asFlow(): Flow<Int> = flow {
171171

172172
/**
173173
* Creates a _cold_ flow that produces values from the given array.
174-
* The flow is _cold_ means that the array components are read every time a terminal operator is applied
174+
* The flow being _cold_ means that the array components are read every time a terminal operator is applied
175175
* to the resulting flow.
176176
*/
177177
public fun LongArray.asFlow(): Flow<Long> = flow {

0 commit comments

Comments
 (0)