Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- AppBarLayout
- Behavior
- notification
- 백준
- activity
- sqlite
- onMeasure
- room
- hilt
- Navigation
- BOJ
- kotlin
- lifecycle
- LiveData
- CollapsingToolbarLayout
- CoordinatorLayout
- 알고리즘
- View
- Android
- 코틀린
- Algorithm
- recyclerview
- DataBinding
- ViewModel
- onLayout
- 안드로이드
- Coroutine
- HTTP
- CustomView
- 알림
Archives
- Today
- Total
목록DELAY (1)
개발일지
Kotlin in A..Z - Coroutine(2) 기본
코루틴 빌더 runBlocking { } -> 해당 코루틴이 끝날 때 까지 Blocking한다. fun main() { // delay(1000L)가 실행되는 동안 main함수가 끝나고 println을 만나지 못하고 종료 GlobalScope.launch { delay(1000L) println("Pass") } } Process finished with exit code 0 fun main() { GlobalScope.launch { delay(1000L) println("Pass") } runBlocking { // delay(2000L)이 끝날 때 까지 Blocking 된다. delay(2000L) } } Pass Process finished with exit code 0 launch { } ->..
Kotlin (코틀린)
2020. 10. 15. 15:47