Created
April 20, 2017 14:24
-
-
Save YogevSitton-zz/85a41e65c7c18212d0c336b463db64d9 to your computer and use it in GitHub Desktop.
Performing background tasks and then updating the UI
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: .background).async { | |
// Do some background work | |
DispatchQueue.main.async { | |
// Update the UI to indicate the work has been completed | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment