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