Sunday, September 1, 2013

Using Task.Run() without Lamda

Thanks to both of you for your replies. I guess I'm struggling that Task.Run(...) only takes the parameterless Action or Func<...>. The only way to get values into the method within the Run is for the Lambda to use values it has access to within the method that calls the Task.Run() or the accessible values within the class.


I just have to get used to the Lambda. I do like the anonymous delegate though. It does allow me to move the method outside of the ...Async method that calls the Task.Run


Michael




Michael


No comments:

Post a Comment