Skip to content

Instantly share code, notes, and snippets.

@Vannevelj
Created September 22, 2016 21:17
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 Vannevelj/0d55490a4276b97a9f6291eeccd2c4ff to your computer and use it in GitHub Desktop.
Save Vannevelj/0d55490a4276b97a9f6291eeccd2c4ff to your computer and use it in GitHub Desktop.
async Task Main()
{
var t = Do();
Console.WriteLine("Main");
await t;
Console.WriteLine("done");
}
async Task Do()
{
for (var i = 0; i < 3; i++)
{
Console.WriteLine("tick");
await Task.Delay(1000);
}
Console.WriteLine("Do");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment