Last active
November 15, 2018 19:07
-
-
Save vialyx/4a2c994af0b8ba0c409181a2824ba375 to your computer and use it in GitHub Desktop.
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.init(label: "defaultQos").sync { | |
print("sync defaultQos exec") | |
// 1 | |
} | |
DispatchQueue.init(label: "defaultQos").async { | |
print("async defaultQos exec") | |
// 3 | |
} | |
print("sync main exec") | |
// 2 | |
/* console output | |
sync defaultQos exec | |
sync main exec | |
async defaultQos exec | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment