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/

https://www.markopapic.com/csharp-under-the-hood-async-await.html   这个篇文章的url变成了.html结尾了

这个文章先写了一个可以被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上,

The async series

Dissecting the async methods in C#.
Extending the async methods in C#.
The performance characteristics of the async methods in C#.
One user scenario to rule them all.

 

Understanding C# async / await (1) Compilation

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

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(1063)  评论(2编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2017-07-15 Install the IIS 6.0 Management Compatibility Components in Windows 7 or in Windows Vista from Control Panel
2016-07-15 Task
2015-07-15 WCF 托管在IIS中遇到Http的错误
2015-07-15 Default Web Site
2015-07-15 Learning WCF Chapter1 Hosting a Service in IIS
2015-07-15 git subtree 拆分split repository
点击右上角即可分享
微信分享提示