Created
August 21, 2017 17:44
-
-
Save NickHung1982/20ddc737a32582caea8e38d173380d8c to your computer and use it in GitHub Desktop.
DispatchQueue
This file contains 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: .background).async { | |
//running background | |
DispatchQueue.main.async { | |
// Go back to the main thread to update the UI | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment