https://kotlinlang.org logo
e

elizarov

11/06/2017, 10:15 AM
@Dalinar There is a
Mutex
, but it is rarely needed with coroutines. You should avoid sharing state. You can read more here: https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md#shared-mutable-state-and-concurrency