Skip to content

Commit cc3d8c4

Browse files
Rick Busarowqwwdfsad
Rick Busarow
authored andcommitted
update broadcastIn comment to refer to itself instead of produce
1 parent 8a6e8d1 commit cc3d8c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public fun <T> BroadcastChannel<T>.asFlow(): Flow<T> = flow {
151151
* that collects the given flow and thus resulting channel should be properly closed or cancelled.
152152
*
153153
* A channel with [default][Channel.Factory.BUFFERED] buffer size is created.
154-
* Use [buffer] operator on the flow before calling `produce` to specify a value other than
154+
* Use [buffer] operator on the flow before calling `broadcastIn` to specify a value other than
155155
* default and to control what happens when data is produced faster than it is consumed,
156156
* that is to control backpressure behavior.
157157
*/
@@ -169,7 +169,7 @@ public fun <T> Flow<T>.broadcastIn(
169169
* that collects the given flow and thus resulting channel should be properly closed or cancelled.
170170
*
171171
* A channel with [default][Channel.Factory.BUFFERED] buffer size is created.
172-
* Use [buffer] operator on the flow before calling `produce` to specify a value other than
172+
* Use [buffer] operator on the flow before calling `produceIn` to specify a value other than
173173
* default and to control what happens when data is produced faster than it is consumed,
174174
* that is to control backpressure behavior.
175175
*/

0 commit comments

Comments
 (0)