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
- Coroutines
- Observer Pattern
- kotlin multiplatform
- Design Pattern
- 추상팩토리패턴
- kmp
- 팩토리 메소드
- 디자인패턴 #
- 추상 팩토리
- 옵저버 패턴
- 함수형프로그래밍
- 코틀린
- Functional Programming
- 안드로이드 디자인시스템
- 디자인패턴
- 빌터패턴
- factory method
- 코틀린멀티플랫폼
- 프로토타입 패턴
- 코루틴
- ㅋㅁ
- material3
- define
- Abstract Factory
- PrototypePattern
- compose
- builderPattern
- android designsystem
- designPattern
- Kotlin
Archives
- Today
- Total
목록2026/02/01 (1)
오늘도 더 나은 코드를 작성하였습니까?
9장 취소
취소는 매우 중요하여 중단함수를 사용하는 몇몇 클래스와 라이브러리는 취소를 반드시 지원한다.기본적인 취소job 인터페이스는 취소를 가능하게 하는 cancel 메서드를 가지고 있다. cancel- 첫 번째 중단점에서 job을 종료한다.- 자식 코루틴을 가지고 있다면 종료한다. 하지만 부모에게는 영향을 주이 않는다.- 취소되면, 새로운 코루틴의 부모가 될수 없다.import kotlinx.coroutines.*suspend fun main(): Unit = coroutineScope { val job = launch { repeat(1_000) { i -> delay(200) println("printing $i") } } de..
Coroutine/코틀린 코루틴
2026. 2. 1. 19:52
