<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I’m migrating some code from swift 2 to swift 3, and I use the CoreMedia timebase API (CMSync). One of the functions I use is&nbsp;CMTimebaseAddTimerDispatchSource whose documentation (<a href="https://developer.apple.com/reference/coremedia/1489429-cmtimebaseaddtimerdispatchsource" class="">https://developer.apple.com/reference/coremedia/1489429-cmtimebaseaddtimerdispatchsource</a>) has not been updated and commands to use old swift 2 code (<span style="color: rgb(0, 132, 0); font-family: Menlo; font-size: 11px;" class="">dispatch_source_create( DISPATCH_SOURCE_TYPE_TIMER, 0, 0, some_dispatch_queue )</span>).</div><div class="">Is creating a timer source with&nbsp;<span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);" class="">DispatchSource</span><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;" class="">.</span><span style="color: rgb(62, 30, 129); font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;" class="">makeTimerSource</span><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;" class="">()</span>&nbsp;and casting it to&nbsp;<span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">DispatchSource</span>&nbsp;the right way to go ?</div><div class=""><br class=""></div><div class="">Vincent</div></div></div></body></html>