Skip to content
Update Kotlin coroutines authored by umaumax's avatar umaumax
......@@ -53,6 +53,9 @@ fun main(args: Array<String>) = runBlocking {
`var x = 0``var x = AtomicInteger()`
`x += 1``x.incrementAndGet()`とすると、期待した結果となる(ただし、awaitの返り値はすべて10000である可能性が高い)
### await
`.await()`を実行すると、その結果が返却されるまでこのコードの次の処理はブロックされる
## Dispatchers
[Dispatchers.Default]( https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-dispatchers/-default.html )
......
......