Skip to content

Instantly share code, notes, and snippets.

@bayological
Last active September 28, 2018 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bayological/4485e49abf54acccddb2c4fa181d5b4e to your computer and use it in GitHub Desktop.
Save bayological/4485e49abf54acccddb2c4fa181d5b4e to your computer and use it in GitHub Desktop.
Speaking animals work method
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