Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 사내배포
- ios
- Custom Class
- swift
- Asnyc
- hitTest
- readLine
- binder
- reversed
- moya
- Combine
- UserDefaults
- weak self
- Responder chain
- 공백
- Python
- RxSwift
- URLSession
- BidirectionalCollection
- async
- delays deallocation
- MaxHeap
- 전자출입
- AVCaptureSession
- 입력
- ReactorKit
- vtable
- UIResponder
- DISPATCH
- input
Archives
- Today
- Total
틈틈히 적어보는 개발 일기
[RxSwift] Chapter 5: Filtering Operators 본문
Chapter 5: Filtering Operators
Ignoring operators
ignoreElements()
next로 방출되는 ‘모든' 이벤트를 무시합니다. 단 Error, Complete는 정상적으로 방출합니다.
elementAt(Int)
index 위치에 발생하는 이벤트’만’ 방출합니다.
filter { … }
클로저 내부에 true인 필터에 대한 이벤트를 방출합니다.
skip(Int)
Int 만큼의 이벤트를 무시합니다.
skip(while: { … })
클로저 내부에 해당하지 않는 조건이 나올때까지 이벤트를 무시합니다. 조건을 통과한 이후에는 모든 이벤트를 방출합니다.
skip(until: ObservableType)
해당되는 ObservableType의 next가 트리거링 되기 전 까지 이벤트를 무시합니다.
Taking operators
take(Int)
Int의 숫자만큼 이벤트를 방출합니다. 이후의 모든 이벤트는 무시합니다.
take(while: { … })
클로저 내부에 해당하지 않는 조건이 나올때까지 이벤트를 방출합니다. 조건이 만족되지 않은 이후에는 스트림을 종료합니다.
take(until: ObservableType)
해당되는 ObservableType의 next가 트리거링 되기 전 까지 이벤트를 방출합니다.
Distinct operators
distinctUntilChanged()
값의 변화가 일어날 때에만 이벤트를 방출합니다
'📱 iOS, Swift > 🐉 RxSwift' 카테고리의 다른 글
[RxSwift] Chapter 3: Subjects (0) | 2022.06.07 |
---|---|
[RxSwift] Chapter 1: Hello, RxSwift (0) | 2022.04.17 |
Comments