Explicitly use a Func for asynchronous lambda function when Action overload is available

前端 未结 4 1101
死守一世寂寞
死守一世寂寞 2020-12-13 17:38

Reading over this blog post on some of the gotchas of C#5\'s async/await. It mentions in Gotcha #4 something that is quite profound and that I hadn\'t thought of before.

4条回答
  •  渐次进展
    2020-12-13 18:04

    Bill Wagner does a great job of explaining this question here - https://www.thebillwagner.com/blog/Item/2016-05-18-DoasynclambdasreturnTasks

提交回复
热议问题