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

retry retry연산자는 옵저버블에서 에러가 발생하면 현재 시퀀스를 중단하고 다시 새로운 구독을 시작합니다. 새롭게 구독하는것이므로 기존에 있던 next이벤트들은 소멸되고 다시 시작합니다. retry 연산자 함수 원형 public func retry() -> Observable { CatchSequence(sources: InfiniteSequence(repeatedValue: self.asObservable())) } public func retry(_ maxAttemptCount: Int) -> Observable { CatchSequence(sources: Swift.repeatElement(self.asObservable(), count: maxAttemptCount)) } 함수 원형을 보시면..
Development/RxSwift
2022. 6. 10. 13:42