~/talk

Correcting Common Async/Await Mistakes in .NET 10

Talkat NDC London 2026 · 2026-01-26..01-30· [dotnet, concurrency]
slides:none on file

Shows that the C# compiler generates an IAsyncStateMachine (usually a struct for release builds), wraps moveNext in a giant try/catch so un-awaited tasks hide exceptions, and the async keyword adds about 80 bytes to the DLL. Demonstrates concrete fixes: always await tasks or use a guarded SafeFireAndForget helper/nuget, prefer ConfigureAwait(false) or ConfigureAwaitOptions (force yielding / suppress throwing), stream results with ToAsyncEnumerable/Task.WhenEach in .NET 10, use ValueTask and avoid .Result/.Wait to stop thread blocking and lost exceptions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25How async await works
  3. 5:49Compiler generated code
  4. 10:49State machine breakdown
  5. 19:16Common async mistakes
  6. 23:49Refactoring a WPF app
  7. 31:18Advanced async techniques
  8. 37:05Configuring await behavior
  9. 43:23Performance improvements
  10. 50:58Hot path optimizations
  11. 57:09Conclusion and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.