Deep dive to async Main

added by DotNetKicks
12/6/2017 7:49:25 AM

2 Kicks, 354 Views

C# 7.1 introduces asynchronous Main method for console applications. It helps us to get rid of some ugly code to await for asynchronous methods. If Main method of console applications is application flow controller that makes multiple calls to asynchronous methods then async Main leads us to much cleaner code.