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

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)
  • 방명록

runblocking (1)
Android Coroutine - Coroutine Builder

Coroutine Builder CoroutineScope의 확장함수로 Coroutine을 만드는 역할을 합니다. CoroutineScope(Dispatchers.IO).launch { // do something coroutine } launch() 가장 기본적인 Builder입니다. launch()는 Thread를 Blocking하지 않으며Job이라는 객체를 반환합니다. Job은 cancel(), join() 등 의 함수를 가지고 있습니다. launch의 2번때 매개변수로 CoroutineStart가 주어집니다. CoroutineStart으로 시작 방식을 지정할 수 있습니다. fun CoroutineScope.launch( context: CoroutineContext = EmptyCoroutine..

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

티스토리툴바