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