Chapter 8: Asynchronous streams and resource management
This chapter extends asynchronous processing to streams of values and resource lifetimes, enabling incremental consumption and correct asynchronous cleanup.
Topics covered
System.Threading.Channelsand the producer/consumer pattern.IAsyncEnumerable<T>,await foreach, and asynchronous iterators.- Stream cancellation,
IAsyncDisposable, andawait using.
This chapter is part of the full edition. The free preview edition does not include its full text.