What is the kotlin way to handle thread safety/con...
# getting-started
s
What is the kotlin way to handle thread safety/concurrency? (instead of using synchronized like Java) I am thinking to create a top-level object by call newSingleThreadContext() and pass it around to make sure the operation to change given object all come from same thread. Is this usually how we do in Kotlin?
r
You should read into #coroutines