Created
September 22, 2016 21:17
-
-
Save Vannevelj/0d55490a4276b97a9f6291eeccd2c4ff 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
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