~/talk

Asynchronous Processing and Multithreading Are Always Fun

TalkinRussianat .NET fwdays'18 · on Sunday, 2018-04-15· [testing]
links:none on file
slides:none on file

Covers practical async and multithreading patterns in .NET: when to use Task.Run for CPU-bound work vs normal async for IO-bound work, and why Task.FromResult/Task.CompletedTask are much cheaper than allocating new Tasks. Explains async void pitfalls (exceptions escaping; prefer Func<Task> over Action), shows batching IO with Task.WhenAll to outperform awaiting in a loop, and demonstrates async stack-trace tools, benchmarks, plus notes on ConfigureAwait, async locals, and GC/finalizer issues on older .NET.

AI-written summary · about

  1. 0:00Async and threading intro
  2. 3:56Sync vs async
  3. 7:33CPU vs I/O ops
  4. 10:48How async/await works
  5. 15:48Async migration pitfalls
  6. 19:52Exceptions in async
  7. 24:08Fixing async bugs
  8. 27:57Thread and pool usage
  9. 31:27Async performance myths
  10. 35:23Async and transactions
  11. 37:10Async and IDisposable
  12. 40:23Optimizing async loops
  13. 42:52Execution after await
  14. 44:18Tips and tools
~/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.