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 | 29 | 30 |
Tags
- lifecycle
- onMeasure
- room
- HTTP
- 알림
- 백준
- BOJ
- LiveData
- DataBinding
- notification
- AppBarLayout
- 코틀린
- CoordinatorLayout
- ViewModel
- activity
- Coroutine
- hilt
- 알고리즘
- CollapsingToolbarLayout
- Android
- Algorithm
- sqlite
- kotlin
- Navigation
- onLayout
- recyclerview
- View
- 안드로이드
- CustomView
- Behavior
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