@@ -13,6 +13,7 @@ import kotlin.internal.InlineOnly
13
13
/* *
14
14
* Applying [cancellable][Flow.cancellable] to a [SharedFlow] has no effect.
15
15
* See the [SharedFlow] documentation on Operator Fusion.
16
+ * @suppress
16
17
*/
17
18
@Deprecated(
18
19
level = DeprecationLevel .ERROR ,
@@ -24,6 +25,7 @@ public fun <T> SharedFlow<T>.cancellable(): Flow<T> = noImpl()
24
25
/* *
25
26
* Applying [flowOn][Flow.flowOn] to [SharedFlow] has no effect.
26
27
* See the [SharedFlow] documentation on Operator Fusion.
28
+ * @suppress
27
29
*/
28
30
@Deprecated(
29
31
level = DeprecationLevel .ERROR ,
@@ -35,6 +37,7 @@ public fun <T> SharedFlow<T>.flowOn(context: CoroutineContext): Flow<T> = noImpl
35
37
/* *
36
38
* Applying [conflate][Flow.conflate] to [StateFlow] has no effect.
37
39
* See the [StateFlow] documentation on Operator Fusion.
40
+ * @suppress
38
41
*/
39
42
@Deprecated(
40
43
level = DeprecationLevel .ERROR ,
@@ -46,6 +49,7 @@ public fun <T> StateFlow<T>.conflate(): Flow<T> = noImpl()
46
49
/* *
47
50
* Applying [distinctUntilChanged][Flow.distinctUntilChanged] to [StateFlow] has no effect.
48
51
* See the [StateFlow] documentation on Operator Fusion.
52
+ * @suppress
49
53
*/
50
54
@Deprecated(
51
55
level = DeprecationLevel .ERROR ,
@@ -54,6 +58,9 @@ public fun <T> StateFlow<T>.conflate(): Flow<T> = noImpl()
54
58
)
55
59
public fun <T > StateFlow<T>.distinctUntilChanged (): Flow <T > = noImpl()
56
60
61
+ /* *
62
+ * @suppress
63
+ */
57
64
@Deprecated(
58
65
message = " isActive is resolved into the extension of outer CoroutineScope which is likely to be an error." +
59
66
" Use currentCoroutineContext().isActive or cancellable() operator instead " +
@@ -65,6 +72,9 @@ public fun <T> StateFlow<T>.distinctUntilChanged(): Flow<T> = noImpl()
65
72
public val FlowCollector <* >.isActive: Boolean
66
73
get() = noImpl()
67
74
75
+ /* *
76
+ * @suppress
77
+ */
68
78
@Deprecated(
69
79
message = " cancel() is resolved into the extension of outer CoroutineScope which is likely to be an error." +
70
80
" Use currentCoroutineContext().cancel() instead or specify the receiver of cancel() explicitly" ,
@@ -73,6 +83,9 @@ public val FlowCollector<*>.isActive: Boolean
73
83
)
74
84
public fun FlowCollector <* >.cancel (cause : CancellationException ? = null): Unit = noImpl()
75
85
86
+ /* *
87
+ * @suppress
88
+ */
76
89
@Deprecated(
77
90
message = " coroutineContext is resolved into the property of outer CoroutineScope which is likely to be an error." +
78
91
" Use currentCoroutineContext() instead or specify the receiver of coroutineContext explicitly" ,
@@ -82,6 +95,9 @@ public fun FlowCollector<*>.cancel(cause: CancellationException? = null): Unit =
82
95
public val FlowCollector <* >.coroutineContext: CoroutineContext
83
96
get() = noImpl()
84
97
98
+ /* *
99
+ * @suppress
100
+ */
85
101
@Deprecated(
86
102
message = " SharedFlow never completes, so this operator typically has not effect, it can only " +
87
103
" catch exceptions from 'onSubscribe' operator" ,
@@ -92,6 +108,9 @@ public val FlowCollector<*>.coroutineContext: CoroutineContext
92
108
public inline fun <T > SharedFlow<T>.catch (noinline action : suspend FlowCollector <T >.(cause: Throwable ) -> Unit ): Flow <T > =
93
109
(this as Flow <T >).catch (action)
94
110
111
+ /* *
112
+ * @suppress
113
+ */
95
114
@Deprecated(
96
115
message = " SharedFlow never completes, so this operator has no effect." ,
97
116
level = DeprecationLevel .WARNING ,
@@ -104,6 +123,9 @@ public inline fun <T> SharedFlow<T>.retry(
104
123
): Flow <T > =
105
124
(this as Flow <T >).retry(retries, predicate)
106
125
126
+ /* *
127
+ * @suppress
128
+ */
107
129
@Deprecated(
108
130
message = " SharedFlow never completes, so this operator has no effect." ,
109
131
level = DeprecationLevel .WARNING ,
@@ -113,6 +135,9 @@ public inline fun <T> SharedFlow<T>.retry(
113
135
public inline fun <T > SharedFlow<T>.retryWhen (noinline predicate : suspend FlowCollector <T >.(cause: Throwable , attempt: Long ) -> Boolean ): Flow <T > =
114
136
(this as Flow <T >).retryWhen(predicate)
115
137
138
+ /* *
139
+ * @suppress
140
+ */
116
141
@Suppress(" DeprecatedCallableAddReplaceWith" )
117
142
@Deprecated(
118
143
message = " SharedFlow never completes, so this terminal operation never completes." ,
@@ -122,6 +147,9 @@ public inline fun <T> SharedFlow<T>.retryWhen(noinline predicate: suspend FlowCo
122
147
public suspend inline fun <T > SharedFlow<T>.toList (): List <T > =
123
148
(this as Flow <T >).toList()
124
149
150
+ /* *
151
+ * @suppress
152
+ */
125
153
@Suppress(" DeprecatedCallableAddReplaceWith" )
126
154
@Deprecated(
127
155
message = " SharedFlow never completes, so this terminal operation never completes." ,
@@ -131,6 +159,9 @@ public suspend inline fun <T> SharedFlow<T>.toList(): List<T> =
131
159
public suspend inline fun <T > SharedFlow<T>.toSet (): Set <T > =
132
160
(this as Flow <T >).toSet()
133
161
162
+ /* *
163
+ * @suppress
164
+ */
134
165
@Suppress(" DeprecatedCallableAddReplaceWith" )
135
166
@Deprecated(
136
167
message = " SharedFlow never completes, so this terminal operation never completes." ,
0 commit comments