The promise of an async future awaits
summary
Explains concrete rules for C# async: convert void to Task and T to Task<T>, methods use async/await, tasks start running until their first await, and async streams (C# 8 IAsyncEnumerable) let code yield items as pages arrive instead of buffering them. Demo uses the GitHub GraphQL API, paging 10 pages of 25 issues, and shows streaming each JToken via await foreach so memory stays small. Covers ValueTask optimizations and when to use ConfigureAwait(false); the demos run and stream correctly, and cancellation happens by stopping enumeration.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 2:56Breakfast analogy
- 6:46Parallel vs asynchronous
- 10:45Async code
- 18:18The mental model
- 22:55The next step
- 25:14Dont compose
- 27:05Composition of tasks
- 28:45How it works
- 32:32Common misconception
- 34:57Thread pool
- 36:10Configure await
- 40:20Demo
- 46:34Async strain
- 50:53Review
- 51:34NET Foundation
- 56:54CSharp








