dispatchSource1 [iOS] DispatchSourceTimer를 사용한 타이머 타이머를 기반으로 이벤트 핸들러 블록을 제출하는 디스패치 소스 protocol DispatchSourceTimer DispatchSourceTimer를 사용할 때 사용자는 자신의 객체에 이 프로토콜을 직접 채택하지 않아도 된다. 대신 makeTimerSource(flags:queue:) 메서드를 사용하여 이 프로토콜을 채택하는 객체를 만든다. DispatchSource.makeTimerSource(flags:queue:) 타이머 이벤트를 모니터링 하기 위한 새 디스패치 소스 객체를 만든다. class func makeTimerSource(flags: DispatchSource.TimerFlags = [], queue: DispatchQueue? = nil) -> DispatchSourceTimer [fl.. 2022. 1. 11. 이전 1 다음