Shawn Witte
06/09/2020, 1:40 AMwhile(true) {
delay(interval)
updateDataObject()
}
Then I'm thinking of launching a coroutine in my ViewModel that looks the same except it's pulling the data out of the binding after each interval instead of generating it.
Is there a better way with Channels or Flow? Or is this a reasonable approach?Ryan
06/09/2020, 4:02 AMShawn Witte
06/09/2020, 4:07 AMKit
06/09/2020, 11:01 AMstateFlow
?Paul Woitaschek
06/09/2020, 4:12 PMShawn Witte
06/09/2020, 4:28 PMPaul Woitaschek
06/09/2020, 4:37 PMShawn Witte
06/09/2020, 4:44 PM