@@ -443,8 +443,8 @@ public fun <T> Flow<T>.scanReduce(operation: suspend (accumulator: T, value: T)
443
443
level = DeprecationLevel .ERROR ,
444
444
message = " Flow analogue of 'publish()' is 'shareIn'. \n " +
445
445
" publish().connect() is the default strategy (no extra call is needed), \n " +
446
- " publish().autoConnect() translates to 'started = SharingStared .Lazily' argument, \n " +
447
- " publish().refCount() translates to 'started = SharingStared .WhileSubscribed()' argument." ,
446
+ " publish().autoConnect() translates to 'started = SharingStarted .Lazily' argument, \n " +
447
+ " publish().refCount() translates to 'started = SharingStarted .WhileSubscribed()' argument." ,
448
448
replaceWith = ReplaceWith (" this.shareIn(scope, 0)" )
449
449
)
450
450
public fun <T > Flow<T>.publish (): Flow <T > = noImpl()
@@ -454,8 +454,8 @@ public fun <T> Flow<T>.publish(): Flow<T> = noImpl()
454
454
level = DeprecationLevel .ERROR ,
455
455
message = " Flow analogue of 'publish(bufferSize)' is 'buffer' followed by 'shareIn'. \n " +
456
456
" publish().connect() is the default strategy (no extra call is needed), \n " +
457
- " publish().autoConnect() translates to 'started = SharingStared .Lazily' argument, \n " +
458
- " publish().refCount() translates to 'started = SharingStared .WhileSubscribed()' argument." ,
457
+ " publish().autoConnect() translates to 'started = SharingStarted .Lazily' argument, \n " +
458
+ " publish().refCount() translates to 'started = SharingStarted .WhileSubscribed()' argument." ,
459
459
replaceWith = ReplaceWith (" this.buffer(bufferSize).shareIn(scope, 0)" )
460
460
)
461
461
public fun <T > Flow<T>.publish (bufferSize : Int ): Flow <T > = noImpl()
@@ -465,8 +465,8 @@ public fun <T> Flow<T>.publish(bufferSize: Int): Flow<T> = noImpl()
465
465
level = DeprecationLevel .ERROR ,
466
466
message = " Flow analogue of 'replay()' is 'shareIn' with unlimited replay. \n " +
467
467
" replay().connect() is the default strategy (no extra call is needed), \n " +
468
- " replay().autoConnect() translates to 'started = SharingStared .Lazily' argument, \n " +
469
- " replay().refCount() translates to 'started = SharingStared .WhileSubscribed()' argument." ,
468
+ " replay().autoConnect() translates to 'started = SharingStarted .Lazily' argument, \n " +
469
+ " replay().refCount() translates to 'started = SharingStarted .WhileSubscribed()' argument." ,
470
470
replaceWith = ReplaceWith (" this.shareIn(scope, Int.MAX_VALUE)" )
471
471
)
472
472
public fun <T > Flow<T>.replay (): Flow <T > = noImpl()
@@ -476,16 +476,16 @@ public fun <T> Flow<T>.replay(): Flow<T> = noImpl()
476
476
level = DeprecationLevel .ERROR ,
477
477
message = " Flow analogue of 'replay(bufferSize)' is 'shareIn' with the specified replay parameter. \n " +
478
478
" replay().connect() is the default strategy (no extra call is needed), \n " +
479
- " replay().autoConnect() translates to 'started = SharingStared .Lazily' argument, \n " +
480
- " replay().refCount() translates to 'started = SharingStared .WhileSubscribed()' argument." ,
479
+ " replay().autoConnect() translates to 'started = SharingStarted .Lazily' argument, \n " +
480
+ " replay().refCount() translates to 'started = SharingStarted .WhileSubscribed()' argument." ,
481
481
replaceWith = ReplaceWith (" this.shareIn(scope, bufferSize)" )
482
482
)
483
483
public fun <T > Flow<T>.replay (bufferSize : Int ): Flow <T > = noImpl()
484
484
485
485
/* * @suppress */
486
486
@Deprecated(
487
487
level = DeprecationLevel .ERROR ,
488
- message = " Flow analogue of 'cache()' is 'shareIn' with unlimited replay and 'started = SharingStared .Lazily' argument'" ,
489
- replaceWith = ReplaceWith (" this.shareIn(scope, Int.MAX_VALUE, started = SharingStared.Lazily )" )
488
+ message = " Flow analogue of 'cache()' is 'shareIn' with unlimited replay and 'started = SharingStarted .Lazily' argument'" ,
489
+ replaceWith = ReplaceWith (" this.shareIn(scope, started = SharingStarted.Lazily, replay = Int.MAX_VALUE )" )
490
490
)
491
491
public fun <T > Flow<T>.cache (): Flow <T > = noImpl()
0 commit comments