informCount is a StateFlow that gets updated super fast it doesn't seem to work (not emitting anything). Should I use sample instead of debounce or no?
o
octylFractal
07/02/2020, 12:14 AM
sample continuously emits every
period
of time, debounce only emits after no events occur for
period
of time
octylFractal
07/02/2020, 12:16 AM
for your use case, you probably want to
sample
so that you get something even if it keeps updating
j
julian
07/02/2020, 12:25 AM
Just to clarify @octylFractal's explanation slightly,
debounce
emits the latest event after no events occur for a period of time.