Created
June 18, 2016 03:37
-
-
Save cwagdev/1d409b0b8fcb5168a8427725a36f3ef5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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