Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

An non-async Task<int> is returning a Task<int> object, where the return statement of an async Task<int> method is of type int (which will be wrapped in the resulting Task). ”return 1;” eg only works in the latter case.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: