get

fun <T> Resolver.get(data: StateFlow<T>): T

Returns StateFlow.value and tracks the observable (on the MainScope).


fun <T> Resolver.get(data: WhileUsed<T>): T

Returns WhileUsed's value and keeps it alive as long as it's still used.