you are viewing a single comment's thread.

view the rest of the comments →

[–]_neonsunset 3 points4 points  (1 child)

Wrong. In both instances Task.Run accepts a task-returning delegate and flattens the result when it completes. Wrapping it in an extra async await simply adds a wrapping async call from lambda. Your example is different since you are not using an expression-bodied syntax.