Skip to content

Commit

Permalink
Fix replacement for deprecated broadcastIn operator (#2382)
Browse files Browse the repository at this point in the history
Fixes #2344
  • Loading branch information
qwwdfsad committed Nov 13, 2020
1 parent 865c229 commit 937cc0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/common/src/flow/Channels.kt
Expand Up @@ -201,7 +201,7 @@ public fun <T> BroadcastChannel<T>.asFlow(): Flow<T> = flow {
*/
@Deprecated(
message = "Use shareIn operator and the resulting SharedFlow as a replacement for BroadcastChannel",
replaceWith = ReplaceWith("shareIn(scope, 0, SharingStarted.Lazily)"),
replaceWith = ReplaceWith("this.shareIn(scope, SharingStarted.Lazily, 0)"),
level = DeprecationLevel.WARNING
)
public fun <T> Flow<T>.broadcastIn(
Expand Down

0 comments on commit 937cc0c

Please sign in to comment.