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