Reco.dy
close
프로필 배경
프로필 로고

Reco.dy

    • 분류 전체보기
      • Android
      • Kotlin
      • RxJava
      • Git
      • 활동
  • mode_edit_outline글작성
  • settings환경설정
  • 홈
  • 태그
  • 방명록

[Coroutine] suspendCoroutine과 suspendCancellableCoroutine

지난 callbackFlow에 이어서 callback를 coroutine 형태로 받을 수 있는 suspendCoroutine과 suspendCancellableCoroutine에 대해 알아보려고 합니다. 1. suspendCoroutine public suspend inline fun suspendCoroutine( crossinline block: (Continuation) -> Unit): T { } 먼저 suspendCoroutine에 대해 알아보도록 하겠습니다. 내부 코드와 함께 적힌 설명을 살펴보면, block 람다 함수는 Continuation 객체를 인자로 받으며, 비동기 작업이 완료되면 결과를 이 Continutaion 객체를 통해 반환합니다. Continuation 객체는 현재 코루틴 상..

  • format_list_bulleted Kotlin
  • · 2023. 10. 9.
  • textsms
  • «
  • 1
  • »
공지사항
전체 카테고리
  • 분류 전체보기
    • Android
    • Kotlin
    • RxJava
    • Git
    • 활동
최근 글
인기 글
최근 댓글
태그
  • #Rxjava
  • #Coroutine
  • #Jetpack Compose
  • #git client
  • #appWidget
  • #git-fork
  • #android
  • #repeatOnLifeCycle
  • #개발동아리
  • #BiometricPrompt
  • #suspendCancellableCoroutine
  • #suspendCoroutine
  • #Flow
  • #callbackFlow
  • #composeUI
  • #java
  • #InputFilter
  • #Compose
  • #basictextfield
  • #Kotlin
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바