~/talk

Asynchronous streams

Talkat DotNext 2019 Moscow · 2019-11-06..11-07· [c-sharp, concurrency]
links:none on file
slides:none on file

C# 8 adds true pull-based async streams via IAsyncEnumerable<T> and await foreach, implemented in .NET Core 3 and available for older frameworks via NuGet. Demo builds a paging client that requests pages of 5 items from a 12-item server with 3s delays and yields batches—consumer sees a 3s wait then five items, repeated; cancellation after 3s stops around item 7. MoveNextAsync uses ValueTask, enumerators support IAsyncDisposable, and buffered push-to-pull uses System.Threading.Channels.

AI-written summary · about

  1. 0:00Introduction
  2. 0:28History of async/await
  3. 6:21Why asynchronous streams
  4. 13:00Demo: Async streams
  5. 20:51Mental model and types
  6. 30:08Practical paging API
  7. 35:53Anti-patterns and tools
  8. 38:46LINQ and async streams
  9. 48:13Cancellation support
~/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.