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

AsyncSubject 는 이벤트가 전달되는 시점이 다릅니다. 구독한 시점에 이벤트가 전달되는것이 아닌 Complite 이벤트가 전달되면 가장 마지막 이벤트가 전달됩니다. let disposeBag = DisposeBag() enum MyError: Error { case error } let subject = AsyncSubject() subject .subscribe { print($0) } .disposed(by: disposeBag) subject.onNext(1) subject.onNext(2) subject.onNext(3) subject.onCompleted() //subject.onError(MyError.error) 출력 next(3) completed 만약 onCompleted가 아닌 ..
Development/RxSwift
2022. 5. 30. 16:13