I am using Using async/await for multiple tasks as reference.
public async Task DoWork() {
int[] ids = new[] { 1, 2, 3, 4, 5 };
await Task.WhenAll(ids.Select(i => DoSomething(1, i, blogClient)));
}
Is it possible to catch an exception on the specific index. As in, when DoSomething throws an exception on i, I can catch that specific index?