반응형
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
- Creating Operators
- graphql
- SwiftUI
- Operater
- Bug
- RxSwift
- RFC1738/1808
- operator
- @State
- IOS
- SWIFT
- subject
- nestjs
- vim
- @EnvironmentObject
- NullObject
- dismiss
- swift6
- init?
- @Binding
- URL(string:)
- @Environment
- typeorm
- NavigationLink
- nonisolated
- RxCocoa
- init
- Xcode
- Operators
- ios14
Archives
- Today
- Total
목록compactMap (1)
Tunko Development Diary
RxSwift) Transforming Operator (toArray, map, compactMap)
toArray toArray는 옵저버블이 방출하는 모든 이벤트를 완료시점에 배열로 방출합니다. let disposeBag = DisposeBag() let subject = PublishSubject() subject .toArray() .subscribe{ print($0) } .disposed(by: disposeBag) subject.onNext(1) subject.onNext(2) subject.onNext(3) subject.onNext(4) subject.onNext(5) subject.onCompleted() 출력 success([1, 2, 3, 4, 5]) 옵저버블이 Completed가 되지 않으면 아무것도 방출하지 않습니다. map let disposeBag = DisposeBag() l..
Development/RxSwift
2022. 6. 2. 20:51