Is there a way I can expose the latest element in ...
# coroutines
r
Is there a way I can expose the latest element in a
Flow
to a non-suspend context? Collect to a
var
?
s
Something like stateIn?
That will return a
StateFlow
with a
value
property that contains the latest element
r
Looks reasonable, thanks!