Using Prioritized Channel08/01/2026
In .NET 9, a new UnboundedPrioritized channel type has been introduced to System.Threading.Channels. This feature has been available since version 8 of the Channel's NuGet package and is compatible with older .NET versions.
Channels provide thread-safe data structures for producer/consumer scenarios. In this pattern, one or more producers add items to a channel while one or more consumers read from it independently.
Two types of channels exist:
- Bounded channels: Have a maximum size limit with customizable behavior when full
- Unbounded channels: Have no size limit (beyond system memory constraints)