Last active
January 14, 2020 01:21
-
-
Save almaleh/c2848041dcedf2bf15cc71244d6f3293 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
let concurrent = DispatchQueue(label: "com.besher.concurrent", attributes: .concurrent) | |
concurrent.async { | |
for _ in 0..<5 { print("🔵") } | |
} | |
concurrent.async { | |
for _ in 0..<5 { print("🔴") } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment