Channel/Flow support is missing for Room right now...
# coroutines
a
Channel/Flow support is missing for Room right now? Right?
t
Yes. Would be nice to have
Flow
integration in a future release of Room. For now, we can convert `Observable`/`Flowable` to
Flow
with
asFlow()
to achieve the same result.
but, you could probably wrap up the coroutine support that room has with your own channel/flow
or...just use LiveData
i
There's an ongoing PR to add first-class Flow support to DAO methods on Room: https://android-review.googlesource.com/c/platform/frameworks/support/+/944458 Now that the core Flow API has reached stable on 1.3-RC it shouldn't take long for it to be implemented
🎉 11
a
Yeah we'd like to get this merged asap
a
LiveData can be easy converted to Flow
j
Only issue I had with LiveData is it emits null when you observe, but yes with Kotlin is fairly easy 🙂
No one said otherwise, but yes I agree.
r
Yea actually I misspoke lol. Just wanted to point there is a fundamental difference. Is there a timeline when Flow will reach stable?
😅 1
t
@rkeazor The time is now !
Flow
has reached the stable status since 1.3.0-RC. Only some recent operators are still experimental.