구리스

  • 홈
  • 태그
  • 방명록

iOS/RxSwift 1

[RxSwift] throttle과 debounce의 차이점을 알아보자!

사이드 프로젝트 개발 중, 코드리뷰로 버튼 input 이벤트에 대해 " throttle 말고 debounce 를 사용한 이유를 알 수 있을까요 ?! "라는 리뷰를 받았었다.음 .. 그러게요? 나 왜 debounce를 사용했지? throttle과 기능적 차이점은 어떤 게 있을까?잊지 않기 위해 글로 남겨보고자 한다.  debounce관찰 가능한 항목을 다른 항목을 방출하지 않고 특정 시간대를 경과한 경우에만 방출합니다.only emit an item from an Observable if a particular timespan has passed without it emitting another item. 내가 적용한 코드를 예시로 살펴보자. ViewModel 에서 Input으로 좋아요 버튼 클릭 이벤트를..

iOS/RxSwift 2024.10.17
이전
1
다음
더보기
프로필사진

구리스

Apple 생태계 속 배움을 즐기는 개발자의 기록 📝

  • 분류 전체보기 (17)
    • WWDC25 (6)
    • Apple Developer Academy @PO.. (1)
      • Human Interface Guidelines (4)
    • iOS (6)
      • UIKit (3)
      • SwiftUI (2)
      • RxSwift (1)

Tag

distinguished winner, swift student challenge, 애플 디벨로퍼 아카데미 합격 수기, tabbars, ux 분석, contentmode, scaletofill, apple developer academy @postech, 애플 디벨로퍼 아카데미, Apple, scaleaspectfit, image localizing, 애플 디벨로퍼 아카데미 3기, HIG, 스터디, compressionquality, accessability, UIKit, scaleaspectfill, wwdc25,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
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 29 30
31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바