Skip to content

Instantly share code, notes, and snippets.

@nojaf
Created October 24, 2016 11:16
Show Gist options
  • Save nojaf/68e3b5411dd2dd17ddc977d2cb405fc8 to your computer and use it in GitHub Desktop.
Save nojaf/68e3b5411dd2dd17ddc977d2cb405fc8 to your computer and use it in GitHub Desktop.
MainAsync
using System;
using System.Threading.Tasks;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
MainAsync(args).GetAwaiter().GetResult();
Console.ReadKey();
}
public static async Task MainAsync(string[] args)
{
await Task.Delay(1000);
Console.WriteLine("Hello World!");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment