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
Remove deprecated methods from the Java Flow integration module
The `kotlinx-coroutines-jdk9` module, being a copy of
`kotlinx-coroutines-reactive`, has its share of legacy APIs
defined. As this is a new module, there is no reason to
preserve them.
The changes include:
* `Migration.kt`, being a file completely dedicated to warnings
about old API usage, has been removed.
* `IntegrationTest.kt` changed slightly so that it no longer uses
the subscription channel API, which is deprecated.
* `Channel.kt` is now just an implementation detail. It does not
expose any public methods.
* In particular, `Publisher<T>.collect` has been moved to
`ReactiveFlow.kt` and is no longer inline, as it would expose
`openSubscription`, which is deprecated.
* `PublisherSubscriptionSelectTest`, which tests use of `select`
with the subscription channel API, is not included anymore.
* `Convert.kt` also has been removed altogether, having no
non-deprecated methods.
Copy file name to clipboardExpand all lines: binary-compatibility-validator/reference-public-api/kotlinx-coroutines-jdk9.txt
+1-18
Original file line number
Diff line number
Diff line change
@@ -7,28 +7,10 @@ public final class kotlinx/coroutines/jdk9/AwaitKt {
7
7
public static final fun awaitSingle (Ljava/util/concurrent/Flow$Publisher;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
8
8
}
9
9
10
-
public final class kotlinx/coroutines/jdk9/ChannelKt {
11
-
public static final fun collect (Ljava/util/concurrent/Flow$Publisher;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
12
-
public static final fun consumeEach (Ljava/util/concurrent/Flow$Publisher;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
13
-
public static final fun openSubscription (Ljava/util/concurrent/Flow$Publisher;I)Lkotlinx/coroutines/channels/ReceiveChannel;
14
-
public static synthetic fun openSubscription$default (Ljava/util/concurrent/Flow$Publisher;IILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
15
-
}
16
-
17
10
public abstract interface class kotlinx/coroutines/jdk9/ContextInjector {
18
11
public abstract fun injectCoroutineContext (Ljava/util/concurrent/Flow$Publisher;Lkotlin/coroutines/CoroutineContext;)Ljava/util/concurrent/Flow$Publisher;
19
12
}
20
13
21
-
public final class kotlinx/coroutines/jdk9/ConvertKt {
22
-
public static final fun asPublisher (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/CoroutineContext;)Ljava/util/concurrent/Flow$Publisher;
23
-
public static synthetic fun asPublisher$default (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/CoroutineContext;ILjava/lang/Object;)Ljava/util/concurrent/Flow$Publisher;
24
-
}
25
-
26
-
public final class kotlinx/coroutines/jdk9/FlowKt {
27
-
public static final fun asFlow (Ljava/util/concurrent/Flow$Publisher;)Lkotlinx/coroutines/flow/Flow;
28
-
public static final fun asFlow (Ljava/util/concurrent/Flow$Publisher;I)Lkotlinx/coroutines/flow/Flow;
29
-
public static final fun asPublisher (Lkotlinx/coroutines/flow/Flow;)Ljava/util/concurrent/Flow$Publisher;
30
-
}
31
-
32
14
public final class kotlinx/coroutines/jdk9/FlowSubscription : kotlinx/coroutines/AbstractCoroutine, java/util/concurrent/Flow$Subscription {
33
15
public final field flow Lkotlinx/coroutines/flow/Flow;
34
16
public final field subscriber Ljava/util/concurrent/Flow$Subscriber;
@@ -65,5 +47,6 @@ public final class kotlinx/coroutines/jdk9/PublisherCoroutine : kotlinx/coroutin
65
47
public final class kotlinx/coroutines/jdk9/ReactiveFlowKt {
66
48
public static final fun asFlow (Ljava/util/concurrent/Flow$Publisher;)Lkotlinx/coroutines/flow/Flow;
67
49
public static final fun asPublisher (Lkotlinx/coroutines/flow/Flow;)Ljava/util/concurrent/Flow$Publisher;
50
+
public static final fun collect (Ljava/util/concurrent/Flow$Publisher;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
0 commit comments