WhileSubscribed

data class WhileSubscribed(val timeout: Duration = DEFAULT_TIMEOUT) : SelectStateCache

Keeps StateFlow cached until it has subscribers. It's removed from cache after a timeout without subscribers.

Constructors

Link copied to clipboard
fun WhileSubscribed(timeout: Duration = DEFAULT_TIMEOUT)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard