Last active
September 28, 2018 01:16
-
-
Save bayological/4485e49abf54acccddb2c4fa181d5b4e to your computer and use it in GitHub Desktop.
Speaking animals work method
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
private async Task WorkAsync() | |
{ | |
while (true) | |
{ | |
Console.WriteLine("The animals will now speak..."); | |
_cow.Speak(); | |
_cat.Speak(); | |
_mouse.Speak(); | |
Thread.Sleep(TimeSpan.FromSeconds(3)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment