title: How do I write dispatch_after GCD in Swift 3, 4, and 5?
body: <p>In Swift 2, I was able to use <code>dispatch_after</code> to delay an action using grand central dispatch:</p>
  
  <pre><code>var dispatchTime: dispatch_time_t = dispatch_time(DISPATCH_TIME_NOW, Int64(0.1 * Double(NSEC_PER_SEC))) 
  dispatch_after(dispatchTime, dispatch_get_main_queue(), { 
      // your function here 
  })
  </code></pre>
  
  <p>But this no longer seems to compile since Swift 3. What is the preferred way to write this in modern Swift?</p>