Created
June 14, 2018 17:08
-
-
Save olbrichj/958312fcd5b635280306f2886ed5f1e6 to your computer and use it in GitHub Desktop.
This file contains 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
func write(_ text: String) { | |
let words = text.split(separator: " ") | |
for word in words { | |
title.append(String(word)) | |
} | |
} | |
write("Concurrency with Swift:") // Thread 1 | |
write("What could possibly go wrong?") // Thread 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment