1 min readJan 23, 2020
Each child coroutine is a separate coroutine and the same rule holds true. No two actions in the same coroutine can be concurrent. You typically confine mutable objects to a coroutine by syntactically enclosing them into a coroutine and ensuring they don’t leak to any other coroutines (including child coroutines). The closest analogue for Thread local with coroutines is a coroutine context.