[coroutine] Shared mutable state and concurrency [coroutine] Shared mutable state and concurrency https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/shared-mutable-state-and-concurrency.md#shared-mutable-state-and-concurrency -Dispatchers.Default 와 같은 dispatcher 를 사용하여 coroutine 은 multi thread 에서 병렬적으로 수행될 수 있다.이는 일반적인 병렬 관련 문제를 보여준다.주요 문제는 공유된 변경가능한 상태에 대한 동기화이다. The problem -suspend fun massiveRun(action : suspend () -> Unit){ val.. 2020. 3. 13. 반응형 이전 1 다음