Let’s learn why we need to synchronize access to m...
# feed
h
Let’s learn why we need to synchronize access to mutable state, and how to secure it. The article is taken from previously unpublished parts of the book Effective Kotlin by @marcinmoskala. 🤩 https://tinyurl.com/25ehbcey
K 2
👍 1
m
I missed some kind of reference to communication via messages (channels, flows, actors etc.). Imho the best way to guard against synchronization issues is to just not have shared mutable state in the first place. I guess the book probably mentions it in other places...
m
Thanks, but those are all part of Kotlin Coroutines, I described in the Kotlin Coroutines: Deep Dive