Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 1.25 KB

File metadata and controls

15 lines (11 loc) · 1.25 KB

UsingChannels

Examples and experiments using System.Threading.Channels in C#

This repo shows how powerful and fast C# Channels are and how they can be used in simple and complex asynchronous scenarios. Channels provide a robust way to coordinate and communicate between threads and tasks in C# applications. It helps to make code maintainable and clean.

What are Channels ?

Channels are an implementation of the producer/consumer conceptual programming model. In this programming model, producers asynchronously produce data, and consumers asynchronously consume that data. In other words, this model passes data from one party to another through a first-in first-out ("FIFO") queue. Multiple producers and/or consumers are possible. The number of messages in the queue can be unlimited (unbounded, up to memory is full) or bounded to a max number of messages.

Used and useful Links