this is a stupid question but somehow it makes me feel I am missing something. Is there any difference in execution for async lambda and normal method? Like this
var tasks = list.Select(async c => { /* await somewhere */});
await Task.WhenAll(tasks);
and that
async Task<object> GetSomething(object c) { /* await somewhere */}
// ...
var task = list.Select(GetSomething);
await Task.WhenAll(tasks);
edit: I am asking because I have misconceptions if it is possible for the lambda to behave differently then a normal method. Provided that both the lambda and the method have the same body, is it possible that the lambda would create a void task? or the execution would not work as expected?
thank you, I haven't expected that fast response!