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
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/api/kotlinx-coroutines-core.klib.api
-1
Original file line number
Diff line number
Diff line change
@@ -825,7 +825,6 @@ final fun <#A: kotlin/Any?> (kotlin.coroutines/SuspendFunction0<#A>).kotlinx.cor
825
825
final fun <#A: kotlin/Any?> (kotlin.sequences/Sequence<#A>).kotlinx.coroutines.flow/asFlow(): kotlinx.coroutines.flow/Flow<#A> // kotlinx.coroutines.flow/asFlow|[email protected]<0:0>(){0§<kotlin.Any?>}[0]
826
826
final fun <#A: kotlin/Any?> (kotlin/Array<#A>).kotlinx.coroutines.flow/asFlow(): kotlinx.coroutines.flow/Flow<#A> // kotlinx.coroutines.flow/asFlow|[email protected]<0:0>(){0§<kotlin.Any?>}[0]
827
827
final fun <#A: kotlin/Any?> (kotlin/Function0<#A>).kotlinx.coroutines.flow/asFlow(): kotlinx.coroutines.flow/Flow<#A> // kotlinx.coroutines.flow/asFlow|[email protected]<0:0>(){0§<kotlin.Any?>}[0]
828
-
final fun <#A: kotlin/Any?> (kotlinx.coroutines.channels/BroadcastChannel<#A>).kotlinx.coroutines.flow/asFlow(): kotlinx.coroutines.flow/Flow<#A> // kotlinx.coroutines.flow/asFlow|[email protected]<0:0>(){0§<kotlin.Any?>}[0]
829
828
final fun <#A: kotlin/Any?> (kotlinx.coroutines.channels/ReceiveChannel<#A>).kotlinx.coroutines.channels/broadcast(kotlin/Int = ..., kotlinx.coroutines/CoroutineStart = ...): kotlinx.coroutines.channels/BroadcastChannel<#A> // kotlinx.coroutines.channels/broadcast|[email protected]<0:0>(kotlin.Int;kotlinx.coroutines.CoroutineStart){0§<kotlin.Any?>}[0]
830
829
final fun <#A: kotlin/Any?> (kotlinx.coroutines.channels/ReceiveChannel<#A>).kotlinx.coroutines.channels/distinct(): kotlinx.coroutines.channels/ReceiveChannel<#A> // kotlinx.coroutines.channels/distinct|[email protected]<0:0>(){0§<kotlin.Any?>}[0]
831
830
final fun <#A: kotlin/Any?> (kotlinx.coroutines.channels/ReceiveChannel<#A>).kotlinx.coroutines.channels/drop(kotlin/Int, kotlin.coroutines/CoroutineContext = ...): kotlinx.coroutines.channels/ReceiveChannel<#A> // kotlinx.coroutines.channels/drop|[email protected]<0:0>(kotlin.Int;kotlin.coroutines.CoroutineContext){0§<kotlin.Any?>}[0]
* **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