Created
April 20, 2017 14:21
-
-
Save YogevSitton-zz/6b231c49a37dc4c0902459be36dff94d to your computer and use it in GitHub Desktop.
System Dispatch Queues
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
DispatchQueue.global(qos: .utility).async { | |
// Asynchronous code running on the low priority queue | |
} | |
DispatchQueue.main.async { | |
// Asynchronous code running on the main queue | |
} | |
DispatchQueue.global(qos: .userInitiated).sync { | |
// Synchronous code running on the high prioriy queue | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment