Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created May 12, 2020 15:14
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/c0cc1806eff7800e23ff9fec92db5fbb to your computer and use it in GitHub Desktop.
Save kevingosse/c0cc1806eff7800e23ff9fec92db5fbb to your computer and use it in GitHub Desktop.
class Program
{
public static async Task ProcessAsync()
{
await Task.Delay(2000);
Console.WriteLine("Processing done");
}
static async Task Main(string[] args)
{
await Task.Factory.StartNew(ProcessAsync);
Console.WriteLine("End of program");
Console.ReadLine();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment