System.Threading.Channels 10.0.0-preview.1.25080.5
About
The System.Threading.Channels library provides types for passing data asynchronously between producers and consumers.
Key Features
- Abstractions representing channels for one or more producers to publish data to one or more consumers
- APIs focused on asynchronous production and consumption of data
- Factory methods for producing multiple kinds of channels
How to Use
using System;
using System.Threading.Channels;
using System.Threading.Tasks;
Channel<int> channel = Channel.CreateUnbounded<int>();
Task producer = Task.Run(async () =>
{
int i = 0;
while (true)
{
channel.Writer.TryWrite(i++);
await Task.Delay(TimeSpan.FromSeconds(1));
}
});
Task consumer = Task.Run(async () =>
{
await foreach (int value in channel.Reader.ReadAllAsync())
{
Console.WriteLine(value);
}
});
await Task.WhenAll(producer, consumer);
Main Types
The main types provided by this library are:
System.Threading.Channel<T>System.Threading.Channel
Additional Documentation
Related Packages
https://www.nuget.org/packages/System.Threading.Tasks.Dataflow/
Feedback & Contributing
System.Threading.Channels is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on System.Threading.Channels.
| Packages | Downloads |
|---|---|
|
Azure.Search.Documents
This is the Azure Cognitive Search client library for developing .NET
applications with rich search experiences. It enables you to query your
indexes, update documents in your indexes, and manage indexes, synonym
maps, indexers, data sources, or other service-level resources.
|
29 |
|
protobuf-net.Grpc
Package Description
|
23 |
|
protobuf-net.Grpc
Package Description
|
22 |
|
Npgsql
Npgsql is the open source .NET data provider for PostgreSQL.
|
22 |
|
StackExchange.Redis
High performance Redis client, incorporating both synchronous and asynchronous usage.
|
22 |
|
Npgsql
Npgsql is the open source .NET data provider for PostgreSQL.
|
21 |
|
Microsoft.ML
ML.NET is a cross-platform open-source machine learning framework which makes machine learning accessible to .NET developers.
|
20 |
|
protobuf-net.Grpc
Package Description
|
20 |
|
RabbitMQ.Client
The RabbitMQ .NET client is the official client library for C# (and, implicitly, other .NET languages)
|
20 |
|
Npgsql
Npgsql is the open source .NET data provider for PostgreSQL.
|
20 |
https://go.microsoft.com/fwlink/?LinkID=799421
.NET Framework 4.6.2
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.0-preview.1.25080.5)
- System.Threading.Tasks.Extensions (>= 4.6.0)
.NET 8.0
- No dependencies.
.NET 9.0
- No dependencies.
.NET 10.0
- No dependencies.
.NET Standard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.0-preview.1.25080.5)
- System.Threading.Tasks.Extensions (>= 4.6.0)
.NET Standard 2.1
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 10.0.0-preview.1.25080.5 | 16 | 07/13/2025 |
| 9.0.0-preview.3.24172.9 | 16 | 08/09/2025 |
| 8.0.0-preview.4.23259.5 | 16 | 07/11/2025 |
| 7.0.0-preview.5.22301.12 | 12 | 07/09/2025 |
| 7.0.0-preview.4.22229.4 | 14 | 07/11/2025 |
| 6.0.2-mauipre.1.22102.15 | 14 | 07/11/2025 |
| 6.0.0-preview.3.21201.4 | 15 | 07/09/2025 |
| 5.0.0-rc.2.20475.5 | 15 | 07/09/2025 |
| 4.7.1 | 14 | 07/08/2025 |