C# async await and state machine

Async Await and the Generated StateMachine

https://www.codeproject.com/Articles/535635/Async-Await-and-the-Generated-StateMachine

这篇文章是在code project上,写了async的代码,直接反编译看编译器的源码了

C# Async: What is it, and how does it work?

https://www.red-gate.com/simple-talk/dotnet/net-tools/c-async-what-is-it-and-how-does-it-work/

 这篇文章在red-gate的simple talk上,先自己写了一个状态机来说明如何解决异步编程问题,后面才转到async反编译源码分析

C# Under the Hood: async/await

https://www.markopapic.com/csharp-under-the-hood-async-await/

这个文章先写了一个可以被await的class,分析如果想要被await的话,需要满足哪些条件,然后反编译分析源码

这个文章发表在一个个人网站上,作者还有一篇分析依赖注入的https://www.markopapic.com/dependency-injection-tradeoffs/

 

Dissecting the async methods in C#

https://devblogs.microsoft.com/premier-developer/dissecting-the-async-methods-in-c/

这篇文章发表在微软的devblogs上,

Understanding C# async / await (1) Compilation

https://weblogs.asp.net/dixin/understanding-c-sharp-async-await-1-compilation

原文地址:https://www.cnblogs.com/chucklu/p/11186658.html