Extending the async methods in C#

added by DotNetKicks
1/11/2018 2:42:26 PM

2 Kicks, 377 Views

In the previous blog post we discussed how the C# compiler transforms asynchronous methods. In this post, we'll focus on extensibility points the C# compiler provides for customizing the behavior of async methods. There are 3 ways how you can control the async method's machinery: Provide your own async method builder in the System.Runtime.CompilerServices namespace....