How does C# 5.0's async-await feature differ from the TPL?

后端 未结 7 1633
孤城傲影
孤城傲影 2020-12-07 10:48

I don\'t see the different between C#\'s (and VB\'s) new async features, and .NET 4.0\'s Task Parallel Library. Take, for example, Eric Lippert\'s code from here:

         


        
相关标签:
7条回答
  • 2020-12-07 11:10

    The ability to turn the program flow of control into a state machine is what makes these new keywords intresting. Think of it as yielding control, rather than values.

    Check out this Channel 9 video of Anders talking about the new feature.

    0 讨论(0)
提交回复
热议问题