Given the following code:
var tasks1 = users.Select(async user => await Task.Delay(1000));
await Task.WhenAll(tasks1);
do I need to include the async
/ await
syntax in this line of code?
I thought I can also write it like ...
var tasks2 = users.Select(user => Task.Delay(1000));
await Task.WhenAll(tasks2);
which does compile and run.
Is this something to do with error handling?