File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
kotlinx-coroutines-core/common Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,8 @@ public val FlowCollector<*>.coroutineContext: CoroutineContext
83
83
get() = noImpl()
84
84
85
85
@Deprecated(
86
- message = " SharedFlow never completes, so this operator has no effect." ,
86
+ message = " SharedFlow never completes, so this operator typically has not effect, it can only " +
87
+ " catch exceptions from 'onSubscribe' operator" ,
87
88
level = DeprecationLevel .WARNING ,
88
89
replaceWith = ReplaceWith (" this" )
89
90
)
Original file line number Diff line number Diff line change @@ -602,6 +602,7 @@ class SharedFlowTest : TestBase() {
602
602
}
603
603
604
604
@Test
605
+ @Suppress(" DEPRECATION" ) // 'catch'
605
606
fun onSubscriptionThrows () = runTest {
606
607
expect(1 )
607
608
val sh = MutableSharedFlow <String >(1 )
You can’t perform that action at this time.
0 commit comments