Created
April 20, 2017 14:27
-
-
Save YogevSitton-zz/b9b1b02ad7507cee0c37f0d375029d32 to your computer and use it in GitHub Desktop.
Beware of synchronously running on the main thread from a synchronous background thread
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).sync { | |
// Background Task | |
DispatchQueue.main.sync { | |
// App will crash | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment