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

ReactiveX - Subject ReplaySubject는 create메서드를 통해 생성합니다. 생성시 이벤트의 버퍼의 크기를 지정합니다. 버퍼는 메모리에 할당하기 때문에 버퍼크기를 잘 고려해야 합니다. 낭비는 없도록 해줍니다. let disposeBag = DisposeBag() enum MyError: Error { case error } let replaySubject = ReplaySubject.create(bufferSize: 5) (1...10).forEach { replaySubject.onNext($0) } replaySubject.subscribe{ print("next Event : \\($0)")} .disposed(by: disposeBag) 출력 next Event : next..
Development/RxSwift
2022. 5. 30. 15:12