I am calling 10 different points from the api in OnInitializedAsync()
in Blazor WASM
var tasks = new List<Task>();
var oneTask = OneAsync();
var twoTask = TwoAsync();
tasks.add(oneTask)
tasks.add(twoTask);
await Task.WhenAll(tasks);
var result = await oneTask;
but I suspect it is doing it one by one according to the developer console. I see the call to each point and how long each one takes, shouldn't I run it all at once??
Am I doing something wrong or I don't understand the use of WhenAll
?