[Combine] Chapter11 : Timers
Timers 타이머를 구현하려면 아래와 같은 방법이 있습니다. RunLoop Timer class DispatchQueue RunLoop NOTE Apple 공식문서에서 RunLoop 클래스는 thread safe 하지 않아, 현재 thread에서만 RunLoop 메서드를 호출해야 한다고 합니다. 아래는 RunLoop를 활용해 1초마다 print를 하는 timer를 만든 예제 입니다. import Foundation let runLoop = RunLoop.main let subscription = runLoop.schedule( after: runLoop.now, interval: .seconds(1), tolerance: .milliseconds(100)) { print("Timer fired") }..
iOS
2023. 1. 8. 01:03
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Swift Error Handling
- Swift Leetcode
- Class
- Swift
- Combine: Asynchronous Programming with Swift
- swift protocol
- CS 네트워크
- Swift init
- swift property
- Swift inout
- iOS error
- Swift while
- Swift 내림차순
- 원티드 프리온보딩
- iOS GCD
- Swift joined
- Swift joined()
- Uber Architecture
- Swift final
- ios
- swift 고차함수
- 2023년 회고
- Swift ModernRIBs
- Swift 프로퍼티
- 호텔리어 개발자
- Swift RIBs
- RIBs tutorial
- swift function
- Swift 프로그래머스
- swift reduce
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함