Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
async main with C# 7.1
// C# 7.0
static void Main()
{
SomeMethodAsync().Wait();
}
// C# 7.1
async static Task Main()
{
await SomeMethodAsync();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment