DispatchQueue.main.async {
// execute in main thread
}
DispatchQueue.global(qos: .background).async {
// execute in background thread
}
DispatchQueue.main.asyncAfter(deadline: .now() + 3, execute: {
// wait three seconds
}
Last active
September 10, 2016 14:55
-
-
Save mfessenden/8fcb19a68ab252466be7529924c43333 to your computer and use it in GitHub Desktop.
Swift 3 DispatchQueue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment