I have several tasks returning the same type of object that I want to call using Task.WhenAll(new[]{t1,t2,t3}); and reading the results.
When i try to use
Task<List<string>> all = await Task.WhenAll(new Task[] { t, t2 }).ConfigureAwait(false);
I get a compiler error
It is not possible to implicitly convert the type 'void' to 'System.Threading.Tasks.Task<System.Collections.Generic.List<string>>
both tasks invoke a method similar to this.
private Task<List<string>> GetFiles(string path) { files = new List<string>(); return Task.Run(() => {
source share