https://kotlinlang.org logo
#coroutines
Title
# coroutines
r

Rob

05/06/2021, 6:15 PM
I'm looking for a way to update a UI from a flow at a given interval. I was using sample() which works but the first emit is delayed. Is there a way to emit the first item without delay using sample() or some other function?
g

gildor

05/07/2021, 12:14 AM
There is no throttle operator in Flow, at least as I remember, there is should be a feature request on coroutines issue tracker
2 Views