SharingStarted
interface SharingStarted
(source)Functions
abstract fun command( Transforms the subscriptionCount state of the shared flow into the flow of commands that control the sharing coroutine. See the SharingStarted interface documentation for details. |
Companion Object Properties
val Eagerly: SharingStarted Sharing is started immediately and never stops. |
|
val Lazily: SharingStarted Sharing is started when the first subscriber appears and never stops. |
Companion Object Functions
fun WhileSubscribed( Sharing is started when the first subscriber appears, immediately stops when the last subscriber disappears (by default), keeping the replay cache forever (by default). |
Companion Object Extension Functions
fun SharingStarted.Companion.WhileSubscribed( Sharing is started when the first subscriber appears, immediately stops when the last subscriber disappears (by default), keeping the replay cache forever (by default). |