Skip to content

Commit 937cc0c

Browse files
authored
Fix replacement for deprecated broadcastIn operator (#2382)
Fixes #2344
1 parent 865c229 commit 937cc0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public fun <T> BroadcastChannel<T>.asFlow(): Flow<T> = flow {
201201
*/
202202
@Deprecated(
203203
message = "Use shareIn operator and the resulting SharedFlow as a replacement for BroadcastChannel",
204-
replaceWith = ReplaceWith("shareIn(scope, 0, SharingStarted.Lazily)"),
204+
replaceWith = ReplaceWith("this.shareIn(scope, SharingStarted.Lazily, 0)"),
205205
level = DeprecationLevel.WARNING
206206
)
207207
public fun <T> Flow<T>.broadcastIn(

0 commit comments

Comments
 (0)