Skip to content

Commit ed97260

Browse files
committed
Get rid of top-level functions in Migration.kt to improve experience of users who depend on any reactive library and kotlinx.coroutines
1 parent b37ca3a commit ed97260

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

binary-compatibility-validator/reference-public-api/kotlinx-coroutines-core.txt

-3
Original file line numberDiff line numberDiff line change
@@ -826,9 +826,6 @@ public abstract interface class kotlinx/coroutines/flow/FlowCollector {
826826

827827
public final class kotlinx/coroutines/flow/FlowKt {
828828
public static final field DEFAULT_CONCURRENCY_PROPERTY_NAME Ljava/lang/String;
829-
public static final fun BehaviorSubject ()Ljava/lang/Object;
830-
public static final fun PublishSubject ()Ljava/lang/Object;
831-
public static final fun ReplaySubject ()Ljava/lang/Object;
832829
public static final fun asFlow (Ljava/lang/Iterable;)Lkotlinx/coroutines/flow/Flow;
833830
public static final fun asFlow (Ljava/util/Iterator;)Lkotlinx/coroutines/flow/Flow;
834831
public static final fun asFlow (Lkotlin/jvm/functions/Function0;)Lkotlinx/coroutines/flow/Flow;

kotlinx-coroutines-core/common/src/flow/Migration.kt

-23
Original file line numberDiff line numberDiff line change
@@ -99,29 +99,6 @@ public fun <T> Flow<T>.publishOn(context: CoroutineContext): Flow<T> = noImpl()
9999
@Deprecated(message = "Use flowOn instead", level = DeprecationLevel.ERROR)
100100
public fun <T> Flow<T>.subscribeOn(context: CoroutineContext): Flow<T> = noImpl()
101101

102-
/**
103-
* Use [BroadcastChannel][kotlinx.coroutines.channels.BroadcastChannel].asFlow().
104-
* @suppress
105-
*/
106-
@Deprecated(message = "Use BroadcastChannel.asFlow()", level = DeprecationLevel.ERROR)
107-
public fun BehaviorSubject(): Any = noImpl()
108-
109-
/**
110-
* `ReplaySubject` is not supported. The closest analogue is buffered [BroadcastChannel][kotlinx.coroutines.channels.BroadcastChannel].
111-
* @suppress
112-
*/
113-
@Deprecated(
114-
message = "ReplaySubject is not supported. The closest analogue is buffered broadcast channel",
115-
level = DeprecationLevel.ERROR)
116-
public fun ReplaySubject(): Any = noImpl()
117-
118-
/**
119-
* `PublishSubject` is not supported.
120-
* @suppress
121-
*/
122-
@Deprecated(message = "PublishSubject is not supported", level = DeprecationLevel.ERROR)
123-
public fun PublishSubject(): Any = noImpl()
124-
125102
/**
126103
* Flow analogue of `onErrorXxx` is [catch].
127104
* Use `catch { emitAll(fallback) }`.

0 commit comments

Comments
 (0)