본문 바로가기
Android

Coroutine Context

by 열정창작소 2023. 1. 4.

Coroutine Context

1. Dispatchers (코루틴 실행되는 스레드 지정)
- Default (CPU 연산작업)
- IO (파일 IO , 네트워크 IO)
- Main (UI Thread 에서 UI관련 변경)
- Unconfined

2. Job & Deferred (continue)
- States
-methods 

(

cancel, //작업 coroutine 취소

 join, // 작업 끝날때까지 대기

start //작업 coroutine 시작

)
 




'Android' 카테고리의 다른 글

Coroutine 지연  (0) 2023.01.04
Coroutine Builder  (0) 2023.01.04
코루틴과 스레드  (0) 2023.01.04
Android Singleton 패턴 객체  (0) 2023.01.04
안드로이드 프로젝트 API 키 숨기기  (0) 2023.01.04