Try using Task.WhenAll instead of WaitAll:
await Task.WhenAll(t1, t2);
Alternatively you can await each task:
await t1;
await t2;
No comments:
Post a Comment