From 937cc0c4912ad707850b0f37417164a77525f4b7 Mon Sep 17 00:00:00 2001 From: Vsevolod Tolstopyatov Date: Fri, 13 Nov 2020 00:49:56 -0800 Subject: [PATCH] Fix replacement for deprecated broadcastIn operator (#2382) Fixes #2344 --- kotlinx-coroutines-core/common/src/flow/Channels.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlinx-coroutines-core/common/src/flow/Channels.kt b/kotlinx-coroutines-core/common/src/flow/Channels.kt index 762cdcad1b..63b285abc3 100644 --- a/kotlinx-coroutines-core/common/src/flow/Channels.kt +++ b/kotlinx-coroutines-core/common/src/flow/Channels.kt @@ -201,7 +201,7 @@ public fun BroadcastChannel.asFlow(): Flow = 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 Flow.broadcastIn(