T
The real Slartibartfast
Guest
Hello,
Struggling to get the syntax right for this method which needs to return a List<Task<T>>. I have the syntax correct in a couple of private methods in the same class but I cannot seem to get it right for the ProcessAPIs method. (I know, I'm going to rename that method...).
So this method (ProcessAPIs) needs to return List<Workload> or List<Event> and several other List<T> going forward.
I have tried Task<IEnumerable<T>> and Task<List<T>>
I commented out the code that calls this until I can get the return type sorted.
Be great if someone could point out what I have missed or any other observations on the code as I'm new to generics and async programming.
Thanks in advance.
Continue reading...
Struggling to get the syntax right for this method which needs to return a List<Task<T>>. I have the syntax correct in a couple of private methods in the same class but I cannot seem to get it right for the ProcessAPIs method. (I know, I'm going to rename that method...).
So this method (ProcessAPIs) needs to return List<Workload> or List<Event> and several other List<T> going forward.
I have tried Task<IEnumerable<T>> and Task<List<T>>
I commented out the code that calls this until I can get the return type sorted.
Be great if someone could point out what I have missed or any other observations on the code as I'm new to generics and async programming.
Thanks in advance.
Continue reading...