Saturday, June 28, 2014

Getting the error Cannot await void in Task.WaitAll

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