sxunea
close
프로필 사진

sxunea

github: @sxunea

  • 분류 전체보기 (63)
    • 안드로이드 (32)
      • 꺼진개념다시보기 (12)
      • 개발기록 (13)
      • 컴포즈 (7)
    • 코틀린 (19)
      • Kotlin Lang (7)
      • Kotlin Coroutine (12)
    • 알고리즘 (5)
    • 회고 (2)
    • CS (5)
  • 홈
  • 태그
  • 방명록
[Android] viewModelScope, lifecycleScope과 repeatOnLifecycle

[Android] viewModelScope, lifecycleScope과 repeatOnLifecycle

저번 글에서 CoroutineScope에 대해서 자세히 알아보았다면, 이제는 실전으로 안드로이드에서 제공하는 ViewModelScope와 lifecycleScope에 대해서 알아보자. ViewModelScope와 lifecycleScope는 코루틴의 생명주기를 효율적으로 관리할 수 있도록 도와주고, 각각 ViewModel과 LifecycleOwner에 연관된 코루틴 범위를 제공하고, 이를 통해 안드로이드 앱에서의 메모리 누수를 방지할 수 있다. ViewModelScopeCoroutineScope tied to this [ViewModel] This scope will be canceled when ViewModel will be cleared, i.e [ViewModel.onCleared] is call..

  • format_list_bulleted 안드로이드/꺼진개념다시보기
  • · 2024. 7. 10.
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (63)
    • 안드로이드 (32)
      • 꺼진개념다시보기 (12)
      • 개발기록 (13)
      • 컴포즈 (7)
    • 코틀린 (19)
      • Kotlin Lang (7)
      • Kotlin Coroutine (12)
    • 알고리즘 (5)
    • 회고 (2)
    • CS (5)
인기 글
전체 방문자
오늘
어제
Copyright © sxunea 모든 권리 보유.
SKIN: Copyright © 쭈미로운 생활 All rights reserved. Designed by JJuum.
and Current skin "dev-roo" is modified by Jin.

티스토리툴바