https://kotlinlang.org logo
e

elizarov

01/17/2017, 10:58 AM
However, coroutines are so lightweight (unlike thread), so when you need to change a context (like changing threadlocals) you just start a new coroutine with an updated context.