일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- TOSS 과제
- google play console
- withContext
- Next Challenge
- SDUI
- 백준
- 백준2309
- Advanced LCA
- coroutinescope
- java
- Flow
- Algorithm
- cancellationException
- Android
- ShapeableImageView
- monotone stack
- flowon
- Product Flavor
- conflate
- coroutinecontext
- Kotlin
- hotStream
- app-distribution
- coroutine
- coldStream
- ServerDrivenUI
- 안드로이드
- collectLatest
- 릴리즈 키해시
- KAKAO
Archives
- Today
- Total
목록cancellationException (1)
루피도 코딩한다
[Coroutine Basics 4] Coroutine Cacelation
코루틴 취소를 왜하냐? 필요하지 않은 코루틴을 적절히 취소해 컴퓨터 자원을 아낄 수 있다 코루틴 취소 하는 방법 == CancellationException 발생 Kotlin 공식문서의 말을 빌리자면 *' A coroutine code has to cooperate to be cancellable' *라고 한다. Cancellable 하다라는 것은 코루틴 블록 내부에서 CancellationException 이 발생가능한 구조여야 한다는 것이다. CancellationException이 발생되는 방법은 아래와 같이 두가지가 있다. [취소 방법 1] kotlinx.coroutines의 suspending function을 활용하자 kotlinx.coroutines의 suspending 함수들은 'cance..
Coroutine
2024. 1. 19. 16:44