Awaitable/awaiter pattern and logical micro-threading in C#
Let's build a state machine based on awaitable/awaiter pattern.
I would like to share with you something fun. The right way to write interactive documentation - Try .NET. It is an awesome project maintained by Microsoft. It allows you to embed C# code inside your markdown documentation and run it locally. The absolute best way to learn it is to use it. So I encourage you to fork https://github.com/NikiforovAll/intro-to-algorithms and play with it.