Hello, is there an easy way to convert a `Flow` to a `StateFlow` on the fly? ( i.e. `flow.asStateFl...
d
Hello, is there an easy way to convert a
Flow
to a
StateFlow
on the fly? ( i.e.
flow.asStateFlow()
)
j
stateIn
should work i believe
๐Ÿ™ 2
d
Is it Jvm only?
j
no, shouldn't be
d
Tryin [1.3.9] -> [1.4.1]
Yep, itโ€™s probably 1.4+, thank you ๐Ÿ™‚
j
Only issue might be if you're using
native-mt
version of kotlinx coroutines
that's only available for 1.3.9 right now
d
Not yet, I just got jvm + android as now