--

I suppose you can avoid the concurrency issues by just not ever doing things concurrently. That is true.

It's a pretty naive solutionand definitely not what I would recommend. In a real app UI state calculations can get expensive. Doing them on the main thread to block observers while the calculation is underway is a quick way to add jank to your app.

However, if it works for you then it works for you.

--

--

Michael Ferguson
Michael Ferguson

Written by Michael Ferguson

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

Responses (1)