Mikael Alfredsson
10/29/2020, 7:57 PMlouiscad
10/29/2020, 8:17 PMflatMapLatest for that use case.Mikael Alfredsson
10/29/2020, 8:21 PMlouiscad
10/29/2020, 8:22 PMflow { … } with a loop and calls to delay or whatever logic and use combine for example.Mikael Alfredsson
10/29/2020, 8:24 PMdelay ?Mikael Alfredsson
10/29/2020, 8:27 PMtoday, the sql query makes sure you get the items for today , If anything is added for today, it should show up immediately, but at midnight I want to ‘re-trigger’ ROOM (or just filter out yesterday from the flow.Casey Brooks
10/29/2020, 8:36 PMmerge() two flows: the one directly subscribed to Room, and the one on a timer which makes one-time queries to Room on each tick. Results from both would flow downstream https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/merge.htmlMikael Alfredsson
10/29/2020, 8:42 PMlouiscad
10/29/2020, 8:42 PM