In a previous series of asynchronous programming, we explored the behind the scenes of Async code. Here is a summary of the same for quick reference.
Tag: Async Await
Asynchronous Code – Behind the Scenes – 004
During this series of deep dive into the asynchronous calls, we have so far looked into [x] General Structure of generated code.[x] Role of Stub/Worker method.[x] Structure of State Machine and role of Fields.[x] Implementation of the SetStateMachine method.[ ] Implementation of the MoveNext method. It is now time to look at the most important piece of the puzzle … Continue reading Asynchronous Code – Behind the Scenes – 004
Asynchronous Code – Behind the Scenes – 003
Okay, I wasn't quite realistic in the earlier post when I mentioned we would look at MoveNext in this one. I missed an important clog of the wheel. The SetStateMachine() method. IAsyncStateMachine.SetStateMachine We will only breifly visit the SetStateMachine method here, as the complete picture becomes more clear when we look to details of the MoveNext() method. So how does the SetStateMachine method … Continue reading Asynchronous Code – Behind the Scenes – 003
Asynchronous Code – Behind the Scenes – 002
In the earlier part of this series, we reviewed the generic structure of decompiled async code, especially the stub method. In this part, we would continue our explore of async code and look into the State Machine. We would not delve deep into the most important MoveNext() method yet, we will first familiar with the different parts … Continue reading Asynchronous Code – Behind the Scenes – 002
Asynchronous Code – Behind the Scenes – 001
If you were to ask me what was the biggest milestone in .Net development, then my choice would definetly be .Net 5.0 - especially the introduction of the async/await. The more you learn about the underlying working, you cannot but stop and admire the efforts done by the lang uage developers to make our life easier. … Continue reading Asynchronous Code – Behind the Scenes – 001
Awaitable Pattern
How do you determine what types could be awaited ? That is one question that often comes to mind and the most common answer would be Task Task<TResult> void - Though it should be strictly avoided However, are we truely restricted to them ? What are the other Types that could be awaited ? The … Continue reading Awaitable Pattern