title: iOS Dispatch get the last item of the delay time
body: <p>I am using dispatch_after in my textfield</p>
  
  <p>(in func searchBar(searchBar: UISearchBar, textDidChange searchText: String) ) </p>
  
  <p>to only fire my println once every 5 secs.</p>
  
  <p>Use case:
  - Type "abcde" fastly
  - Get back "abcde" println back</p>
  
  <p>Instead of (after 5 secs)
  - a
  - ab
  - abc
  - abcd
  - abcde</p>
  
  <pre><code>        let delayTime = dispatch_time(DISPATCH_TIME_NOW, Int64(5 * Double(NSEC_PER_SEC)))
  
      dispatch_after(delayTime, dispatch_get_main_queue()) {
  
          println("test: \(searchText)")
      }
  </code></pre>