I recommend my async
intro for async
newbies; it has links at the end to the best followup documentation.
In short, what's happening is that you are await
ing the tasks. This will pause the method until those tasks complete. If you want to let them run concurrently, then you can save the tasks into variables (t1
, t2
) and then await them both (await Task.WhenAll(t1, t2);
).
P.S. don't use the Task
constructor or Task.Start
in async
code; use Task.Run
instead.