Multi-threaded code with :dynamic scheduler and mutable data

Thanks! But it feels like that this is more complicated than what should be needed? :sweat_smile:

Refining my google search a bit, I found this post which uses Channels instead. I have never used channels before, but it looks a bit simpler. I will try it out

It feels like my problem/questions would be a pretty common thing people would want to do, so I am a bit surprised that it is difficult to find information about it.