@@ -344,13 +344,13 @@ public fun <T> Flow<T>.concatWith(value: T): Flow<T> = noImpl()
344
344
345
345
/* *
346
346
* Flow analogue of `concatWith` is [onCompletion].
347
- * Use `onCompletion { emitAll(other) }`.
347
+ * Use `onCompletion { if (it == null) emitAll(other) }`.
348
348
* @suppress
349
349
*/
350
350
@Deprecated(
351
351
level = DeprecationLevel .ERROR ,
352
- message = " Flow analogue of 'concatWith' is 'onCompletion'. Use 'onCompletion { emitAll(other) }'" ,
353
- replaceWith = ReplaceWith (" onCompletion { emitAll(other) }" )
352
+ message = " Flow analogue of 'concatWith' is 'onCompletion'. Use 'onCompletion { if (it == null) emitAll(other) }'" ,
353
+ replaceWith = ReplaceWith (" onCompletion { if (it == null) emitAll(other) }" )
354
354
)
355
355
public fun <T > Flow<T>.concatWith (other : Flow <T >): Flow <T > = noImpl()
356
356
@@ -404,7 +404,7 @@ public fun <T1, T2, T3, T4, T5, R> Flow<T1>.combineLatest(
404
404
* @suppress
405
405
*/
406
406
@Deprecated(
407
- level = DeprecationLevel .WARNING , // since 1.3.0, error in 1.4 .0
407
+ level = DeprecationLevel .ERROR , // since 1.3.0, error in 1.5 .0
408
408
message = " Use 'onStart { delay(timeMillis) }'" ,
409
409
replaceWith = ReplaceWith (" onStart { delay(timeMillis) }" )
410
410
)
@@ -416,7 +416,7 @@ public fun <T> Flow<T>.delayFlow(timeMillis: Long): Flow<T> = onStart { delay(ti
416
416
* @suppress
417
417
*/
418
418
@Deprecated(
419
- level = DeprecationLevel .WARNING , // since 1.3.0, error in 1.4 .0
419
+ level = DeprecationLevel .ERROR , // since 1.3.0, error in 1.5 .0
420
420
message = " Use 'onEach { delay(timeMillis) }'" ,
421
421
replaceWith = ReplaceWith (" onEach { delay(timeMillis) }" )
422
422
)
@@ -430,7 +430,7 @@ public fun <T> Flow<T>.delayEach(timeMillis: Long): Flow<T> = onEach { delay(tim
430
430
public fun <T , R > Flow<T>.switchMap (transform : suspend (value: T ) -> Flow <R >): Flow <R > = flatMapLatest(transform)
431
431
432
432
@Deprecated(
433
- level = DeprecationLevel .WARNING , // Since 1.3.8, was experimental when deprecated
433
+ level = DeprecationLevel .ERROR , // Warning since 1.3.8, was experimental when deprecated, ERROR since 1.5.0
434
434
message = " 'scanReduce' was renamed to 'runningReduce' to be consistent with Kotlin standard library" ,
435
435
replaceWith = ReplaceWith (" runningReduce(operation)" )
436
436
)
0 commit comments