SelectStateCache

Enumerates possible cache options for SelectStateFlowProvider.

Types

Link copied to clipboard

Never uses any cache. Always provides a new StateFlow.

Link copied to clipboard
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.

Inheritors

Link copied to clipboard
Link copied to clipboard