Aync/Await action within Task.Run()
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Task.Run(()=>{}) puts the action delegate into the queue and returns the task . Is there any benefit of having async/await within the Task.Run() ? I understand that Task.Run() is required since if we want to use await directly , then the calling method will need to be made Async and will affect the calling places. Here is the sample code which has async await within Task.Run() . The full sample is provided here : https://msdn.microsoft.com/en-us/library/hh228607(v=vs.110).aspx Task.Run(async () => { await new WebClient()