Producer/consumer pipelines with System.Threading.Channels

added by DotNetKicks
8/26/2020 3:42:42 PM

515 Views

Last week, I came across the following question: "Is there an async producer/consumer collection these days in .NET?" Why yes, there is! Using System.Threading.Channels, we can create producer/consumer pairs, and we can even chain them together in a pipeline. In this post, I will try to explain concurrency, producer/consumer, and System.Threading.Channels concepts using a practical example, to refresh our collective memories.


0 comments