[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
- Combine: Asynchronous Programming with Swift
- swift function
- Swift Leetcode
- Swift final
- Swift joined()
- Swift RIBs
- CS 네트워크
- swift reduce
- 호텔리어 개발자
- Swift inout
- Swift 프로퍼티
- RIBs tutorial
- Swift 내림차순
- Swift while
- 2023년 회고
- Swift Error Handling
- swift property
- swift protocol
- iOS error
- Swift init
- iOS GCD
- 원티드 프리온보딩
- Swift ModernRIBs
- swift 고차함수
- Class
- Swift 프로그래머스
- Swift
- Swift joined
- ios
- Uber Architecture
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함