Skip to content

Commit

Permalink
update broadcastIn comment to refer to itself instead of produce
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Busarow authored and qwwdfsad committed Dec 16, 2019
1 parent 8a6e8d1 commit cc3d8c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kotlinx-coroutines-core/common/src/flow/Channels.kt
Expand Up @@ -151,7 +151,7 @@ public fun <T> BroadcastChannel<T>.asFlow(): Flow<T> = flow {
* that collects the given flow and thus resulting channel should be properly closed or cancelled.
*
* A channel with [default][Channel.Factory.BUFFERED] buffer size is created.
* Use [buffer] operator on the flow before calling `produce` to specify a value other than
* Use [buffer] operator on the flow before calling `broadcastIn` to specify a value other than
* default and to control what happens when data is produced faster than it is consumed,
* that is to control backpressure behavior.
*/
Expand All @@ -169,7 +169,7 @@ public fun <T> Flow<T>.broadcastIn(
* that collects the given flow and thus resulting channel should be properly closed or cancelled.
*
* A channel with [default][Channel.Factory.BUFFERED] buffer size is created.
* Use [buffer] operator on the flow before calling `produce` to specify a value other than
* Use [buffer] operator on the flow before calling `produceIn` to specify a value other than
* default and to control what happens when data is produced faster than it is consumed,
* that is to control backpressure behavior.
*/
Expand Down

0 comments on commit cc3d8c4

Please sign in to comment.