Last active
July 29, 2021 10:41
-
-
Save aataraxiaa/3a51be48f26dca7b4d50a1d05bbb1dd2 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
final class DataRacer { | |
var count: Int = 0 | |
let limit = 5 | |
func displayAndUpdate() { | |
guard count < 5 else { | |
return | |
} | |
print("Message \(count)") | |
count+=1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment