You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* **Note: This API is obsolete since 1.5.0 and deprecated for removal since 1.7.0**
65
-
* It is replaced with [SharedFlow][kotlinx.coroutines.flow.SharedFlow] and [StateFlow][kotlinx.coroutines.flow.StateFlow].
38
+
* @suppress obsolete since 1.5.0, WARNING since 1.7.0, ERROR since 1.9.0
66
39
*/
67
40
@ObsoleteCoroutinesApi
68
-
@Deprecated(level =DeprecationLevel.WARNING, message ="BroadcastChannel is deprecated in the favour of SharedFlow and StateFlow, and is no longer supported")
41
+
@Deprecated(level =DeprecationLevel.ERROR, message ="BroadcastChannel is deprecated in the favour of SharedFlow and StateFlow, and is no longer supported")
0->throwIllegalArgumentException("Unsupported 0 capacity for BroadcastChannel")
@@ -76,49 +49,28 @@ public fun <E> BroadcastChannel(capacity: Int): BroadcastChannel<E> =
76
49
}
77
50
78
51
/**
79
-
* Broadcasts the most recently sent element (aka [value]) to all [openSubscription] subscribers.
80
-
*
81
-
* Back-to-send sent elements are _conflated_ -- only the most recently sent value is received,
82
-
* while previously sent elements **are lost**.
83
-
* Every subscriber immediately receives the most recently sent element.
84
-
* Sender to this broadcast channel never suspends and [trySend] always succeeds.
85
-
*
86
-
* A secondary constructor can be used to create an instance of this class that already holds a value.
87
-
* This channel is also created by `BroadcastChannel(Channel.CONFLATED)` factory function invocation.
88
-
*
89
-
* In this implementation, [opening][openSubscription] and [closing][ReceiveChannel.cancel] subscription
90
-
* takes linear time in the number of subscribers.
91
-
*
92
-
* **Note: This API is obsolete since 1.5.0 and deprecated for removal since 1.7.0**
93
-
* It is replaced with [SharedFlow][kotlinx.coroutines.flow.StateFlow].
52
+
* @suppress obsolete since 1.5.0, WARNING since 1.7.0, ERROR since 1.9.0
94
53
*/
95
54
@ObsoleteCoroutinesApi
96
-
@Deprecated(level =DeprecationLevel.WARNING, message ="ConflatedBroadcastChannel is deprecated in the favour of SharedFlow and is no longer supported")
55
+
@Deprecated(level =DeprecationLevel.ERROR, message ="ConflatedBroadcastChannel is deprecated in the favour of SharedFlow and is no longer supported")
0 commit comments