![](http://i1.daumcdn.net/thumb/C148x148.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bzR4RL/btr1f15mVnV/LfZfiYuli1cNpCVihL9TYK/img.png)
지금까지 Combine 내용에선 무조건 성공하는 케이스만 다뤄봤는데, 이번엔 실패했을경우 에러 처리를 어떻게 해야하는지, 어떤 에러처리 방법이 있는지 다뤄보도록 하겠습니다. Never Failure 타입이 Never인 publisher는 erorr가 없는 경우 입니다. example(of: "Never sink") { Just("Hello") .sink(receiveValue: { print($0) }) .store(in: &subscriptions) } Just의 경우 내부를 보면 Failure = Never인걸 확인할 수 있습니다. 만약 Never 타입에서 동작하는 operator(연산자)는 몇개 더 있습니다. 대표적으로 많이 쓰는 `setFailureType`을 먼저 봅시다. setFailureT..
iOS
2023. 3. 1. 17:39
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Swift init
- Swift
- Swift ModernRIBs
- Swift RIBs
- RTCCameraVideoCapturer
- Swift 알고리즘
- Swift 프로퍼티
- 2023년 회고
- Swift joined
- removeLast()
- RIBs tutorial
- Swift 프로그래머스
- Swift joined()
- CS 네트워크
- swift reduce
- Swift 내림차순
- Class
- swift programmers
- swift protocol
- Swift inout
- iOS error
- swift 고차함수
- Swift Error Handling
- swift (programmers)
- Swift Leetcode
- Combine: Asynchronous Programming with Swift
- 원티드 프리온보딩
- swift property
- Swift final
- ios
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함