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