~/talk

.NET: Asyn http client - anatomy and traps

Talkat 4Developers 2020 · 2020-09-14..09-18· [dotnet, concurrency]
links:none on file
slides:none on file

Demonstrates compiler-generated state machines by compiling C# on SharpLab.io, builds a custom awaiter (starts a thread, sleeps, calls the registered callback) and shows it works but isn’t true non-blocking async; traces real non-blocking behavior to sockets using a socket async context loop / poll or IO completion ports plus a small thread pool that demultiplexes callbacks; shows practical traps: WhenAny returns a task reference (need to await it to observe exceptions) and WhenAll exposes only one rethrown exception unless inspected.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:17Async/await compiler internals
  3. 8:48Who resumes async flow
  4. 11:37Custom awaitable implementation
  5. 26:24HTTP client async I/O mechanics
  6. 35:37Traps with WhenAll and WhenAny
  7. 41:56Summary and key takeaways
~/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.