halirutan
01/13/2022, 1:44 AM<http://Dispatchers.IO|Dispatchers.IO>
coroutine scope.
Now, since I'm a compose noob, I have a mutable state list, where I append the datapoints. I rarely get a ConcurrentModificationException
exception which I guess is because the list is modified in the IO scope and read in the UI by compose.
I read that one solution is to basically use a mutable state of an immutable list and assign a new list. That sounds a lot like I don't want to do this. Isn't there a better way to have a long list of datapoints that I can update from the IO thread?Kirill Grouchnikov
01/13/2022, 2:14 AMhalirutan
01/13/2022, 2:25 AMViewModel
the answer might not be applicable for desktop. That's why I asked here.Michael Paus
01/13/2022, 10:58 AMmcpiroman
01/13/2022, 11:29 AMpersistentListOf()
from the library abovehalirutan
01/13/2022, 2:59 PM