To make this simple they introduced async Main[2] a few years ago.
[1]: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
[2]: https://github.com/dotnet/csharplang/blob/main/proposals/csh...