From d38eedb40dee8a49a024d0751e3810f91fe5442f Mon Sep 17 00:00:00 2001 From: Vsevolod Tolstopyatov Date: Thu, 12 Nov 2020 16:36:32 +0300 Subject: [PATCH] Fix replacement for deprecated broadcastIn operator 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(