~/talk

Back to Basics: Efficient Async and Await

Talkat NDC Porto 2022 · 2022-04-25..04-29· [testing]
slides:none on file

Shows concrete C# patterns: moves heavy work off the UI thread with Task.Run, demonstrates that wrapping synchronous methods in tasks causes cross-thread UI bugs and swallowed exceptions, proves async void loses exception handling and that changing to async Task lets callers await errors. Explains deadlocks caused by blocking with .Result/.Wait, shows using Task.WhenAll to parallelize I/O, and demos IAsyncEnumerable with CancellationToken to stream lines successfully from disk.

AI-written summary · about

  1. 0:00Start
  2. 5:43The Task Parallel Library
  3. 18:35Considerations
  4. 19:14Validate the Tasks
  5. 20:09Async and Wait
  6. 32:44State Machine
  7. 38:48Deadlocks
  8. 45:56Avoid Introducing Unnecessary Code
  9. 53:22Long Running Operation
  10. 55:04Asynchronous Operations with Databases
  11. 55:59Async Enumerable
  12. 56:57Enumerator Cancellation
~/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.