~/talk

Asynchronous Programming From The Ground Up

Talkat NDC Sydney 2017 · 2017-08-14..08-18· [concurrency, dotnet]
slides:none on file

Demos in WPF and ASP.NET show that async/await compiles into a generated state machine (example decompiles to ~70 lines) that preserves context, so blocking with Task.Result or Task.Wait causes deadlocks; using Task.Run around Parallel.For can still lock the UI. Practical rules: use async void only for event handlers, prefer returning Task instead of unnecessary async/await to avoid extra state machines, use CancellationToken for smart cancels, and remember ConfigureAwait(false) changes context and can break access to thread‑static or HttpContext data.

AI-written summary · about

  1. 0:00Start
  2. 7:16Blocking - Non Blocking Code
  3. 9:53Task Parallel Library
  4. 29:49async & await - The Bad
  5. 31:17State Machine?
  6. 32:09What does applying async really do?
  7. 34:52Inside the State Machine
  8. 37:10How do we fix it?
  9. 45:56Deadlocks...
~/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.