Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created February 1, 2019 13:25
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 kevingosse/d914fd1e7cb1fb294e3118c34a1f365e to your computer and use it in GitHub Desktop.
Save kevingosse/d914fd1e7cb1fb294e3118c34a1f365e to your computer and use it in GitHub Desktop.
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