Skip to content

Instantly share code, notes, and snippets.

@abbeyjackson
Created November 23, 2015 17:21
Show Gist options
  • Save abbeyjackson/788867ae5edfc2ab38a6 to your computer and use it in GitHub Desktop.
Save abbeyjackson/788867ae5edfc2ab38a6 to your computer and use it in GitHub Desktop.
let delay = 0.25 * Double(NSEC_PER_SEC)
let time = dispatch_time(DISPATCH_TIME_NOW, Int64(delay))
dispatch_after(time, dispatch_get_main_queue()) {
/// do stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment