Skip to content

Commit b843d4a

Browse files
committed
Promote deprecation levels for 1.7.0
1 parent bc9850e commit b843d4a

File tree

17 files changed

+44
-43
lines changed

17 files changed

+44
-43
lines changed

kotlinx-coroutines-core/api/kotlinx-coroutines-core.api

+3-3
Original file line numberDiff line numberDiff line change
@@ -753,10 +753,10 @@ public final class kotlinx/coroutines/channels/ChannelsKt {
753753
public static final synthetic fun maxWith (Lkotlinx/coroutines/channels/ReceiveChannel;Ljava/util/Comparator;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
754754
public static final synthetic fun minWith (Lkotlinx/coroutines/channels/ReceiveChannel;Ljava/util/Comparator;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
755755
public static final synthetic fun none (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
756-
public static final fun onReceiveOrNull (Lkotlinx/coroutines/channels/ReceiveChannel;)Lkotlinx/coroutines/selects/SelectClause1;
757-
public static final fun receiveOrNull (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
756+
public static final synthetic fun onReceiveOrNull (Lkotlinx/coroutines/channels/ReceiveChannel;)Lkotlinx/coroutines/selects/SelectClause1;
757+
public static final synthetic fun receiveOrNull (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
758758
public static final synthetic fun requireNoNulls (Lkotlinx/coroutines/channels/ReceiveChannel;)Lkotlinx/coroutines/channels/ReceiveChannel;
759-
public static final fun sendBlocking (Lkotlinx/coroutines/channels/SendChannel;Ljava/lang/Object;)V
759+
public static final synthetic fun sendBlocking (Lkotlinx/coroutines/channels/SendChannel;Ljava/lang/Object;)V
760760
public static final synthetic fun single (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
761761
public static final synthetic fun singleOrNull (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
762762
public static final synthetic fun take (Lkotlinx/coroutines/channels/ReceiveChannel;ILkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutines/channels/ReceiveChannel;

kotlinx-coroutines-core/common/src/channels/Channel.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public interface SendChannel<in E> {
165165
level = DeprecationLevel.ERROR,
166166
message = "Deprecated in the favour of 'trySend' method",
167167
replaceWith = ReplaceWith("trySend(element).isSuccess")
168-
) // Warning since 1.5.0, error since 1.6.0
168+
) // Warning since 1.5.0, error since 1.6.0, not hidden until 1.8+ because API is quite widespread
169169
public fun offer(element: E): Boolean {
170170
val result = trySend(element)
171171
if (result.isSuccess) return true
@@ -329,7 +329,7 @@ public interface ReceiveChannel<out E> {
329329
"Please note that the provided replacement does not rethrow channel's close cause as 'poll' did, " +
330330
"for the precise replacement please refer to the 'poll' documentation",
331331
replaceWith = ReplaceWith("tryReceive().getOrNull()")
332-
) // Warning since 1.5.0, error since 1.6.0
332+
) // Warning since 1.5.0, error since 1.6.0, not hidden until 1.8+ because API is quite widespread
333333
public fun poll(): E? {
334334
val result = tryReceive()
335335
if (result.isSuccess) return result.getOrThrow()
@@ -361,7 +361,7 @@ public interface ReceiveChannel<out E> {
361361
"for the detailed replacement please refer to the 'receiveOrNull' documentation",
362362
level = DeprecationLevel.ERROR,
363363
replaceWith = ReplaceWith("receiveCatching().getOrNull()")
364-
) // Warning since 1.3.0, error in 1.5.0, will be hidden in 1.6.0
364+
) // Warning since 1.3.0, error in 1.5.0, cannot be hidden due to deprecated extensions
365365
public suspend fun receiveOrNull(): E? = receiveCatching().getOrNull()
366366

367367
/**

kotlinx-coroutines-core/common/src/channels/Channels.common.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ public inline fun <E, R> BroadcastChannel<E>.consume(block: ReceiveChannel<E>.()
5252
@Deprecated(
5353
"Deprecated in the favour of 'receiveCatching'",
5454
ReplaceWith("receiveCatching().getOrNull()"),
55-
DeprecationLevel.ERROR
55+
DeprecationLevel.HIDDEN
5656
) // Warning since 1.5.0, ERROR in 1.6.0, HIDDEN in 1.7.0
5757
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "DEPRECATION_ERROR")
5858
public suspend fun <E : Any> ReceiveChannel<E>.receiveOrNull(): E? {
59+
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
5960
return (this as ReceiveChannel<E?>).receiveOrNull()
6061
}
6162

@@ -64,7 +65,7 @@ public suspend fun <E : Any> ReceiveChannel<E>.receiveOrNull(): E? {
6465
*/
6566
@Deprecated(
6667
"Deprecated in the favour of 'onReceiveCatching'",
67-
level = DeprecationLevel.ERROR
68+
level = DeprecationLevel.HIDDEN
6869
) // Warning since 1.5.0, ERROR in 1.6.0, HIDDEN in 1.7.0
6970
@Suppress("DEPRECATION_ERROR")
7071
public fun <E : Any> ReceiveChannel<E>.onReceiveOrNull(): SelectClause1<E?> {

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ private class ChannelAsFlow<T>(
146146
*/
147147
@Suppress("DEPRECATION")
148148
@Deprecated(
149-
level = DeprecationLevel.WARNING,
149+
level = DeprecationLevel.ERROR,
150150
message = "'BroadcastChannel' is obsolete and all corresponding operators are deprecated " +
151151
"in the favour of StateFlow and SharedFlow"
152-
) // Since 1.5.0, was @FlowPreview, safe to remove in 1.8.0
152+
) // Since 1.5.0, ERROR since 1.7.0, was @FlowPreview, safe to remove in 1.8.0
153153
public fun <T> BroadcastChannel<T>.asFlow(): Flow<T> = flow {
154154
emitAll(openSubscription())
155155
}

kotlinx-coroutines-core/common/src/selects/Select.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public sealed interface SelectBuilder<in R> {
110110
@Deprecated(
111111
message = "Replaced with the same extension function",
112112
level = DeprecationLevel.ERROR, replaceWith = ReplaceWith(expression = "onTimeout", imports = ["kotlinx.coroutines.selects.onTimeout"])
113-
)
113+
) // Since 1.7.0, was experimental
114114
public fun onTimeout(timeMillis: Long, block: suspend () -> R): Unit = onTimeout(timeMillis, block)
115115
}
116116

kotlinx-coroutines-core/concurrent/src/channels/Channels.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ public fun <E> SendChannel<E>.trySendBlocking(element: E): ChannelResult<Unit> {
4444

4545
/** @suppress */
4646
@Deprecated(
47-
level = DeprecationLevel.ERROR,
47+
level = DeprecationLevel.HIDDEN,
4848
message = "Deprecated in the favour of 'trySendBlocking'. " +
4949
"Consider handling the result of 'trySendBlocking' explicitly and rethrow exception if necessary",
5050
replaceWith = ReplaceWith("trySendBlocking(element)")
51-
) // WARNING in 1.5.0, ERROR in 1.6.0, HIDDEN in 1.7.0
51+
) // WARNING in 1.5.0, ERROR in 1.6.0
5252
public fun <E> SendChannel<E>.sendBlocking(element: E) {
5353
// fast path
5454
if (trySend(element).isSuccess)

kotlinx-coroutines-test/common/src/TestBuilders.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public fun runTest(
285285
ReplaceWith("runTest(context, timeout = dispatchTimeoutMs.milliseconds, testBody)",
286286
"kotlin.time.Duration.Companion.milliseconds"),
287287
DeprecationLevel.WARNING
288-
)
288+
) // Warning since 1.7.0, was experimental in 1.6.x
289289
public fun runTest(
290290
context: CoroutineContext = EmptyCoroutineContext,
291291
dispatchTimeoutMs: Long,
@@ -385,7 +385,7 @@ public fun TestScope.runTest(
385385
ReplaceWith("this.runTest(timeout = dispatchTimeoutMs.milliseconds, testBody)",
386386
"kotlin.time.Duration.Companion.milliseconds"),
387387
DeprecationLevel.WARNING
388-
)
388+
) // Warning since 1.7.0, was experimental in 1.6.x
389389
public fun TestScope.runTest(
390390
dispatchTimeoutMs: Long,
391391
testBody: suspend TestScope.() -> Unit

reactive/kotlinx-coroutines-reactive/api/kotlinx-coroutines-reactive.api

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ public final class kotlinx/coroutines/reactive/AwaitKt {
55
public static final fun awaitFirstOrNull (Lorg/reactivestreams/Publisher;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
66
public static final fun awaitLast (Lorg/reactivestreams/Publisher;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
77
public static final fun awaitSingle (Lorg/reactivestreams/Publisher;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
8-
public static final fun awaitSingleOrDefault (Lorg/reactivestreams/Publisher;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
9-
public static final fun awaitSingleOrElse (Lorg/reactivestreams/Publisher;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
10-
public static final fun awaitSingleOrNull (Lorg/reactivestreams/Publisher;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
8+
public static final synthetic fun awaitSingleOrDefault (Lorg/reactivestreams/Publisher;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
9+
public static final synthetic fun awaitSingleOrElse (Lorg/reactivestreams/Publisher;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
10+
public static final synthetic fun awaitSingleOrNull (Lorg/reactivestreams/Publisher;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
1111
}
1212

1313
public final class kotlinx/coroutines/reactive/ChannelKt {

reactive/kotlinx-coroutines-reactive/src/Await.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public suspend fun <T> Publisher<T>.awaitSingle(): T = awaitOne(Mode.SINGLE)
106106
@Deprecated(
107107
message = "Deprecated without a replacement due to its name incorrectly conveying the behavior. " +
108108
"Please consider using awaitFirstOrDefault().",
109-
level = DeprecationLevel.ERROR
109+
level = DeprecationLevel.HIDDEN
110110
) // Warning since 1.5, error in 1.6, hidden in 1.7
111111
public suspend fun <T> Publisher<T>.awaitSingleOrDefault(default: T): T = awaitOne(Mode.SINGLE_OR_DEFAULT, default)
112112

@@ -135,7 +135,7 @@ public suspend fun <T> Publisher<T>.awaitSingleOrDefault(default: T): T = awaitO
135135
message = "Deprecated without a replacement due to its name incorrectly conveying the behavior. " +
136136
"There is a specialized version for Reactor's Mono, please use that where applicable. " +
137137
"Alternatively, please consider using awaitFirstOrNull().",
138-
level = DeprecationLevel.ERROR,
138+
level = DeprecationLevel.HIDDEN,
139139
replaceWith = ReplaceWith("this.awaitSingleOrNull()", "kotlinx.coroutines.reactor")
140140
) // Warning since 1.5, error in 1.6, hidden in 1.7
141141
public suspend fun <T> Publisher<T>.awaitSingleOrNull(): T? = awaitOne(Mode.SINGLE_OR_DEFAULT)
@@ -164,7 +164,7 @@ public suspend fun <T> Publisher<T>.awaitSingleOrNull(): T? = awaitOne(Mode.SING
164164
@Deprecated(
165165
message = "Deprecated without a replacement due to its name incorrectly conveying the behavior. " +
166166
"Please consider using awaitFirstOrElse().",
167-
level = DeprecationLevel.ERROR
167+
level = DeprecationLevel.HIDDEN
168168
) // Warning since 1.5, error in 1.6, hidden in 1.7
169169
public suspend fun <T> Publisher<T>.awaitSingleOrElse(defaultValue: () -> T): T =
170170
awaitOne(Mode.SINGLE_OR_DEFAULT) ?: defaultValue()

reactive/kotlinx-coroutines-reactor/api/kotlinx-coroutines-reactor.api

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
public final class kotlinx/coroutines/reactor/ConvertKt {
2-
public static final fun asFlux (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/CoroutineContext;)Lreactor/core/publisher/Flux;
2+
public static final synthetic fun asFlux (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/CoroutineContext;)Lreactor/core/publisher/Flux;
33
public static synthetic fun asFlux$default (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/CoroutineContext;ILjava/lang/Object;)Lreactor/core/publisher/Flux;
44
public static final fun asMono (Lkotlinx/coroutines/Deferred;Lkotlin/coroutines/CoroutineContext;)Lreactor/core/publisher/Mono;
55
public static final fun asMono (Lkotlinx/coroutines/Job;Lkotlin/coroutines/CoroutineContext;)Lreactor/core/publisher/Mono;
@@ -17,11 +17,11 @@ public final class kotlinx/coroutines/reactor/FluxKt {
1717
}
1818

1919
public final class kotlinx/coroutines/reactor/MonoKt {
20-
public static final fun awaitFirst (Lreactor/core/publisher/Mono;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
21-
public static final fun awaitFirstOrDefault (Lreactor/core/publisher/Mono;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
22-
public static final fun awaitFirstOrElse (Lreactor/core/publisher/Mono;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
23-
public static final fun awaitFirstOrNull (Lreactor/core/publisher/Mono;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
24-
public static final fun awaitLast (Lreactor/core/publisher/Mono;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
20+
public static final synthetic fun awaitFirst (Lreactor/core/publisher/Mono;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
21+
public static final synthetic fun awaitFirstOrDefault (Lreactor/core/publisher/Mono;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
22+
public static final synthetic fun awaitFirstOrElse (Lreactor/core/publisher/Mono;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
23+
public static final synthetic fun awaitFirstOrNull (Lreactor/core/publisher/Mono;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
24+
public static final synthetic fun awaitLast (Lreactor/core/publisher/Mono;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2525
public static final fun awaitSingle (Lreactor/core/publisher/Mono;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2626
public static final fun awaitSingleOrNull (Lreactor/core/publisher/Mono;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2727
public static final fun mono (Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;)Lreactor/core/publisher/Mono;

reactive/kotlinx-coroutines-reactor/src/Convert.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public fun <T> Deferred<T?>.asMono(context: CoroutineContext): Mono<T> = mono(co
4545
* @suppress
4646
*/
4747
@Deprecated(message = "Deprecated in the favour of consumeAsFlow()",
48-
level = DeprecationLevel.ERROR,
48+
level = DeprecationLevel.HIDDEN,
4949
replaceWith = ReplaceWith("this.consumeAsFlow().asFlux(context)", imports = ["kotlinx.coroutines.flow.consumeAsFlow"]))
5050
public fun <T> ReceiveChannel<T>.asFlux(context: CoroutineContext = EmptyCoroutineContext): Flux<T> = flux(context) {
5151
for (t in this@asFlux)

reactive/kotlinx-coroutines-reactor/src/Mono.kt

+5-5
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public fun <T> CoroutineScope.mono(
159159
@Deprecated(
160160
message = "Mono produces at most one value, so the semantics of dropping the remaining elements are not useful. " +
161161
"Please use awaitSingle() instead.",
162-
level = DeprecationLevel.ERROR,
162+
level = DeprecationLevel.HIDDEN,
163163
replaceWith = ReplaceWith("this.awaitSingle()")
164164
) // Warning since 1.5, error in 1.6
165165
public suspend fun <T> Mono<T>.awaitFirst(): T = awaitSingle()
@@ -183,7 +183,7 @@ public suspend fun <T> Mono<T>.awaitFirst(): T = awaitSingle()
183183
@Deprecated(
184184
message = "Mono produces at most one value, so the semantics of dropping the remaining elements are not useful. " +
185185
"Please use awaitSingleOrNull() instead.",
186-
level = DeprecationLevel.ERROR,
186+
level = DeprecationLevel.HIDDEN,
187187
replaceWith = ReplaceWith("this.awaitSingleOrNull() ?: default")
188188
) // Warning since 1.5, error in 1.6
189189
public suspend fun <T> Mono<T>.awaitFirstOrDefault(default: T): T = awaitSingleOrNull() ?: default
@@ -207,7 +207,7 @@ public suspend fun <T> Mono<T>.awaitFirstOrDefault(default: T): T = awaitSingleO
207207
@Deprecated(
208208
message = "Mono produces at most one value, so the semantics of dropping the remaining elements are not useful. " +
209209
"Please use awaitSingleOrNull() instead.",
210-
level = DeprecationLevel.ERROR,
210+
level = DeprecationLevel.HIDDEN,
211211
replaceWith = ReplaceWith("this.awaitSingleOrNull()")
212212
) // Warning since 1.5, error in 1.6
213213
public suspend fun <T> Mono<T>.awaitFirstOrNull(): T? = awaitSingleOrNull()
@@ -231,7 +231,7 @@ public suspend fun <T> Mono<T>.awaitFirstOrNull(): T? = awaitSingleOrNull()
231231
@Deprecated(
232232
message = "Mono produces at most one value, so the semantics of dropping the remaining elements are not useful. " +
233233
"Please use awaitSingleOrNull() instead.",
234-
level = DeprecationLevel.ERROR,
234+
level = DeprecationLevel.HIDDEN,
235235
replaceWith = ReplaceWith("this.awaitSingleOrNull() ?: defaultValue()")
236236
) // Warning since 1.5, error in 1.6
237237
public suspend fun <T> Mono<T>.awaitFirstOrElse(defaultValue: () -> T): T = awaitSingleOrNull() ?: defaultValue()
@@ -255,7 +255,7 @@ public suspend fun <T> Mono<T>.awaitFirstOrElse(defaultValue: () -> T): T = awai
255255
@Deprecated(
256256
message = "Mono produces at most one value, so the last element is the same as the first. " +
257257
"Please use awaitSingle() instead.",
258-
level = DeprecationLevel.ERROR,
258+
level = DeprecationLevel.HIDDEN,
259259
replaceWith = ReplaceWith("this.awaitSingle()")
260260
) // Warning since 1.5, error in 1.6
261261
public suspend fun <T> Mono<T>.awaitLast(): T = awaitSingle()

reactive/kotlinx-coroutines-rx2/api/kotlinx-coroutines-rx2.api

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
public final class kotlinx/coroutines/rx2/RxAwaitKt {
22
public static final fun await (Lio/reactivex/CompletableSource;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
3-
public static final fun await (Lio/reactivex/MaybeSource;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
3+
public static final synthetic fun await (Lio/reactivex/MaybeSource;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
44
public static final fun await (Lio/reactivex/SingleSource;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
55
public static final fun awaitFirst (Lio/reactivex/ObservableSource;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
66
public static final fun awaitFirstOrDefault (Lio/reactivex/ObservableSource;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
77
public static final fun awaitFirstOrElse (Lio/reactivex/ObservableSource;Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
88
public static final fun awaitFirstOrNull (Lio/reactivex/ObservableSource;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
99
public static final fun awaitLast (Lio/reactivex/ObservableSource;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
10-
public static final fun awaitOrDefault (Lio/reactivex/MaybeSource;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
10+
public static final synthetic fun awaitOrDefault (Lio/reactivex/MaybeSource;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
1111
public static final fun awaitSingle (Lio/reactivex/MaybeSource;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
1212
public static final fun awaitSingle (Lio/reactivex/ObservableSource;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
1313
public static final fun awaitSingleOrNull (Lio/reactivex/MaybeSource;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
@@ -35,7 +35,7 @@ public final class kotlinx/coroutines/rx2/RxConvertKt {
3535
public static final fun asFlowable (Lkotlinx/coroutines/flow/Flow;Lkotlin/coroutines/CoroutineContext;)Lio/reactivex/Flowable;
3636
public static synthetic fun asFlowable$default (Lkotlinx/coroutines/flow/Flow;Lkotlin/coroutines/CoroutineContext;ILjava/lang/Object;)Lio/reactivex/Flowable;
3737
public static final fun asMaybe (Lkotlinx/coroutines/Deferred;Lkotlin/coroutines/CoroutineContext;)Lio/reactivex/Maybe;
38-
public static final fun asObservable (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/CoroutineContext;)Lio/reactivex/Observable;
38+
public static final synthetic fun asObservable (Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/CoroutineContext;)Lio/reactivex/Observable;
3939
public static final fun asObservable (Lkotlinx/coroutines/flow/Flow;Lkotlin/coroutines/CoroutineContext;)Lio/reactivex/Observable;
4040
public static synthetic fun asObservable$default (Lkotlinx/coroutines/flow/Flow;Lkotlin/coroutines/CoroutineContext;ILjava/lang/Object;)Lio/reactivex/Observable;
4141
public static final fun asSingle (Lkotlinx/coroutines/Deferred;Lkotlin/coroutines/CoroutineContext;)Lio/reactivex/Single;

reactive/kotlinx-coroutines-rx2/src/RxAwait.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public suspend fun <T> MaybeSource<T>.awaitSingle(): T = awaitSingleOrNull() ?:
9898
*/
9999
@Deprecated(
100100
message = "Deprecated in favor of awaitSingleOrNull()",
101-
level = DeprecationLevel.ERROR,
101+
level = DeprecationLevel.HIDDEN,
102102
replaceWith = ReplaceWith("this.awaitSingleOrNull()")
103103
) // Warning since 1.5, error in 1.6, hidden in 1.7
104104
public suspend fun <T> MaybeSource<T>.await(): T? = awaitSingleOrNull()
@@ -120,7 +120,7 @@ public suspend fun <T> MaybeSource<T>.await(): T? = awaitSingleOrNull()
120120
*/
121121
@Deprecated(
122122
message = "Deprecated in favor of awaitSingleOrNull()",
123-
level = DeprecationLevel.ERROR,
123+
level = DeprecationLevel.HIDDEN,
124124
replaceWith = ReplaceWith("this.awaitSingleOrNull() ?: default")
125125
) // Warning since 1.5, error in 1.6, hidden in 1.7
126126
public suspend fun <T> MaybeSource<T>.awaitOrDefault(default: T): T = awaitSingleOrNull() ?: default

reactive/kotlinx-coroutines-rx2/src/RxConvert.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public fun <T: Any> Flow<T>.asFlowable(context: CoroutineContext = EmptyCoroutin
141141

142142
@Deprecated(
143143
message = "Deprecated in the favour of Flow",
144-
level = DeprecationLevel.ERROR,
144+
level = DeprecationLevel.HIDDEN,
145145
replaceWith = ReplaceWith("this.consumeAsFlow().asObservable(context)", "kotlinx.coroutines.flow.consumeAsFlow")
146146
) // Deprecated since 1.4.0
147147
public fun <T : Any> ReceiveChannel<T>.asObservable(context: CoroutineContext): Observable<T> = rxObservable(context) {

0 commit comments

Comments
 (0)