Skip to content

Instantly share code, notes, and snippets.

@cwagdev
Created June 18, 2016 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwagdev/1d409b0b8fcb5168a8427725a36f3ef5 to your computer and use it in GitHub Desktop.
Save cwagdev/1d409b0b8fcb5168a8427725a36f3ef5 to your computer and use it in GitHub Desktop.
// Swift 2.2
let queue = dispatch_queue_create("myqueue", nil)
dispatch_async(queue) {
// do stuff
}
// Swift 3
let queue = DispatchQueue(label: "myqueue")
queue.async {
// do stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment