Created
February 7, 2019 23:56
-
-
Save nanoxd/f72ec1430adcc3d7a65e36abf87fb2a9 to your computer and use it in GitHub Desktop.
[Assert Main Queue] Assert you're on main queue. Note that main thread and main queue are not always the same thing http://blog.benjamin-encz.de/post/main-queue-vs-main-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
dispatchPrecondition( | |
condition: DispatchPredicate.onQueue(DispatchQueue.main) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment