본문 바로가기 메뉴 바로가기

taetae98

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

taetae98

검색하기 폼
  • 분류 전체보기 (58)
    • Android (31)
      • Widget (4)
      • Lifecycle (4)
      • Coroutine (9)
      • RxJava (8)
      • Gradle (4)
    • Flutter (6)
      • Dart (6)
    • CS (17)
      • Clean Code (17)
    • Git (4)
  • 방명록

MainScope (1)
Android Coroutine - Scope

Scope CoroutineBuilder(launch, async)를 생성하는 범위이다. CoroutineBuilder를 통해 만들어진 Coroutine들은 기본적으로 해당 Scope의 Context를 전달받는다. 즉 Scope는 Coroutine을 만들 수 있는 범위이며, cancel같은 함수로 해당 Scope의 Coroutine을 관리할 수 있다. val scope = CoroutineScope(Dispatchers.IO) val job = scope.launch { // 기본적으로 스코프의 Context 영향을 받는다. (IO) launch { // 상위 스코프의 Context를 가져온다. (IO) } launch(Dispatchers.Main) { // Context를 재정의 할 수 있다. (Ma..

Android/Coroutine 2022. 1. 7. 21:47
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 보이스카우트 규칙
  • ConcatAdapter
  • Exception
  • observable
  • clean code
  • DART
  • 클린코드
  • 클린 코드
  • Android
  • 연산자
  • Kotlin
  • Widget
  • rxjava
  • 함수
  • Coroutine
  • Flowable
  • ConcatAdapter.Config
  • viewmodel
  • commit
  • Flutter
  • git
  • ViewModelStoreOwner
  • null
  • gradle
  • CancellationException
  • ViewModelProvider
  • DSL
  • TDD
  • 코루틴
  • isActive
more
«   2026/02   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바