Last active
July 29, 2021 10:40
-
-
Save aataraxiaa/9d9e0dd470893ecc04cd2786b187a722 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
actor GoodActor { | |
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