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