--

That’s an interesting point!

I suppose, in an extreme edge case where the same event is emitted multiple times the “minus” might remove the wrong event. However, I’m not sure that’s actually an issue in practice if the events are truly the same.

Thinking it through… say you emit the same event multiple times, delay a bit before you start to remove them, the “minus” could remove the “wrong” one, the last one emitted rather than the first one. I guess the overall state would still be correct with one less event in the state so maybe it’s not an issue in practice.

Thanks for the comment. You bring up a good point!

--

--

Michael Ferguson
Michael Ferguson

Written by Michael Ferguson

Android software developer. Views and opinions expressed are my own and not that of my employer.

No responses yet