command

abstract fun command(subscriptionCount: StateFlow<Int>): Flow<SharingCommand>(source)

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.