<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=""><div class="">This kind of question is more appropriate for the swift-users list.</div><div class=""><br class=""></div><div class="">(Additionally, please do file a bug at <a href="http://bugreport.apple.com" class="">bugreport.apple.com</a> for updated documentation!)</div><div class=""><br class=""></div><div class="">Jordan</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 8, 2016, at 03:17, Vincent Jousse via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div 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 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 <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> and casting it to <span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">DispatchSource</span> the right way to go ?</div><div class=""><br class=""></div><div class="">Vincent</div></div></div>_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></body></html>