Created
April 9, 2016 13:49
-
-
Save jchannon/79045313ad634a9c10e32635f8bdeb5d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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