Here I have two functions static int Main() and static async Task<int> Main().
Can anyone tell me what is the difference between them?
static int Main()
{
return DoAsyncWork().GetAwaiter().GetResult();
}
static async Task<int> Main()
{
return await DoAsyncWork();
}
and is await.