Good point, but also it should always be taken with great care in production scenarios that utilize try/catch in similar code as now you are risking of not having the exception unwrapped in the MakeOneMillionDollars due to not awaiting it here explicitly. But the perf tip is on point as this code will produce one compiler generated type less with its following state machine.
re: C# Async Await, Simply VIEW POST
TOP OF THREAD FULL DISCUSSIONGood point, but also it should always be taken with great care in production scenarios that utilize try/catch in similar code as now you are risking of not having the exception unwrapped in the
MakeOneMillionDollars
due to not awaiting it here explicitly. But the perf tip is on point as this code will produce one compiler generated type less with its following state machine.