~/talk

The promise of an async future awaits

Talkat NDC London 2019 · 2019-01-30..02-01· [c-sharp]
slides:none on file

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

  1. 0:00Introduction
  2. 2:56Breakfast analogy
  3. 6:46Parallel vs asynchronous
  4. 10:45Async code
  5. 18:18The mental model
  6. 22:55The next step
  7. 25:14Dont compose
  8. 27:05Composition of tasks
  9. 28:45How it works
  10. 32:32Common misconception
  11. 34:57Thread pool
  12. 36:10Configure await
  13. 40:20Demo
  14. 46:34Async strain
  15. 50:53Review
  16. 51:34NET Foundation
  17. 56:54CSharp
~/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.