Hello, is there an easy way to convert a `Flow` t...
# coroutines
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