Anyone aware of reactive coroutine return types fr...
# room
b
Anyone aware of reactive coroutine return types from db interactions being on the roadmap for Room? I see that for RxJava we get
Flowable
,
Maybe
, etc. but I don't something like that for coroutines in
2.1.0
Note: New to coroutines so that may be a dumb question ūüôā
z
You could convert the
LiveData<T>
into a
ReceiveChannel<T>
or
Flow<T>
via the
Publisher<T>
https://developer.android.com/reference/android/arch/lifecycle/LiveDataReactiveStreams
b
Ah I had seen the article and already started using them, but wasn't aware of
LiveDataReactiveStreams
which could definitely help with the reactive queries