반응형
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 |
Tags
- @EnvironmentObject
- Bug
- nestjs
- nonisolated
- init
- ios14
- SwiftUI
- RFC1738/1808
- typeorm
- Operater
- operator
- NullObject
- subject
- graphql
- Xcode
- URL(string:)
- RxSwift
- Creating Operators
- dismiss
- NavigationLink
- RxCocoa
- vim
- SWIFT
- swift6
- @Binding
- @Environment
- init?
- @State
- IOS
- Operators
Archives
- Today
- Total
목록compactMap (1)
Tunko Development Diary

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