Skip to content

Instantly share code, notes, and snippets.

@jchannon
Created April 9, 2016 13:49
Show Gist options
  • Save jchannon/79045313ad634a9c10e32635f8bdeb5d to your computer and use it in GitHub Desktop.
Save jchannon/79045313ad634a9c10e32635f8bdeb5d to your computer and use it in GitHub Desktop.
static void Main()
{
MainAsync().Wait();
// or, if you want to avoid exceptions being wrapped into AggregateException:
// MainAsync().GetAwaiter().GetResult();
}
static async Task MainAsync()
{
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment