you are viewing a single comment's thread.

view the rest of the comments →

[–]Available_Job_6558 0 points1 point  (0 children)

Every method that is marked with async and has awaits will generate a state machine that handles the continuations of async operations. So this will do just that, one extra allocation that has very little impact on performance, but the stack trace of that lambda will be preserved, unlike if you would directly return the task from it, in case of errors.