markjprice/cs12dotnet8

Capter 2 AsyncConsole non top level version

b7f7 opened this issue · 2 comments

b7f7 commented

async Main does not support int or void return but needs static async Task Main would be good if that is explained, but explaing async here looks out of place

Doesn't the note on page 112 do what you're asking for?
image

I agree this section is a little out-of-place. I will consider removing it in the next edition.

b7f7 commented

yes, for some reason i ignored it because i was not using Net 5 and i thought it was reffereing to Main not supporting async