Created
February 1, 2019 13:25
-
-
Save kevingosse/d914fd1e7cb1fb294e3118c34a1f365e 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Task.Run(Test); | |
Console.ReadLine(); | |
} | |
static async Task Test() | |
{ | |
int i = 42; | |
await Task.Delay(1000); | |
Console.WriteLine(i); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment