https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
p

Pavel Sidyakin

04/08/2021, 4:08 PM
Hi! Nobody answers at #sqldelight channel. I'll try to ask here.
a

alec

04/08/2021, 4:24 PM
you would need to more tightly control the rxjava threading to essentially be syncronous. SQLDelight can only guarantee that at some point you will have the latest version of the data set.
i think you could make it syncronous like this:
Copy code
queries.selectStatus(1)
            .asObservable(Schedulers.trampoline())
p

Pavel Sidyakin

04/08/2021, 4:32 PM
Yes,
Copy code
.asObservable(Schedulers.trampoline())
works. Thank you very much!
3 Views