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