<Do we need to lock the immutable list in kotlin?>...
# stackoverflow
u
Do we need to lock the immutable list in kotlin? var list = listOf("one", "two", "three") fun One() { list.forEach { result -> /// Does something here } } fun Two() { list = listOf("four", "five", "six") } Can function One() and Two() run simultaneously? Do they need to be protected by locks?