System.Threading.Channels 10.0.15

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

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
StackExchange.Redis
High performance Redis client, incorporating both synchronous and asynchronous usage.
37
Microsoft.CodeAnalysis.Workspaces.MSBuild
.NET Compiler Platform ("Roslyn") support for analyzing MSBuild projects and solutions. This should be used with at least one of the following packages to add the appropriate language support: - Microsoft.CodeAnalysis.CSharp.Workspaces - Microsoft.CodeAnalysis.VisualBasic.Workspaces More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/e68227ea677b76a3c603bd616f03ea6d952b2458.
26
MassTransit.AmazonSQS
MassTransit ActiveMQ transport support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
23
Microsoft.CodeAnalysis.CSharp.Workspaces
.NET Compiler Platform ("Roslyn") support for analyzing C# projects and solutions. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/e68227ea677b76a3c603bd616f03ea6d952b2458.
21
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/31d685b2d9a86ca1243014d175a3da813f78e428
19
StackExchange.Redis
High performance Redis client, incorporating both synchronous and asynchronous usage.
19
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/62c098bc170f50feca15916e81cb7f321ffc52ff
18
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/432e6a061f28dda696ba16bc5442328d23b25d93
17
MassTransit
MassTransit provides a developer-focused, modern platform for creating distributed applications without complexity.
17
Microsoft.CodeAnalysis.Workspaces.Common
A shared package used by the .NET Compiler Platform ("Roslyn") including support for analyzing projects and solutions. Do not install this package manually, it will be added as a prerequisite by other packages that require it. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/81d9274600db701a8b08ed8af3fd6b00a775cc33.
16
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source code at https://github.com/aspnet/SignalR/tree/a9def470e3b8e1480c55d1c311e4b37472140307
16
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/a5920c6656c9b8cef9e1f769c28062f0ade62f60
16
MassTransit.AmazonSQS
MassTransit ActiveMQ transport support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
16
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/b7a2ec8c7ed6b48857af0a69688a73e8c14fe6cb
16
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/d504a7b7dab277712646747e9f5cce0d9507245e
16
Microsoft.CodeAnalysis.Workspaces.MSBuild
.NET Compiler Platform ("Roslyn") support for analyzing MSBuild projects and solutions. This should be used with at least one of the following packages to add the appropriate language support: - Microsoft.CodeAnalysis.CSharp.Workspaces - Microsoft.CodeAnalysis.VisualBasic.Workspaces More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/2b7d172669b2f7e55803b55f317cfcc2d4279d76.
16
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/ada5ad97d2114250a05550cb28cc18b9cf9f8993
16
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/a4938d07a5127ffad8466ddf703a6b5b21f4b0c9
16
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/d47e49e9c1e173ac90821f7e89cc38e710274241
15
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/da7e9894ce22ef8cc02e5acc56e95a6f8cf8f644
15

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

.NET 10.0

  • No dependencies.

.NET Standard 2.0

.NET Standard 2.1

  • No dependencies.

Version Downloads Last updated
11.0.0 1 11/20/2026
11.0.0-rc.3.26522.148 1 10/30/2026
11.0.0-rc.2.26504.105 2 10/19/2026
11.0.0-rc.1.26425.128 6 09/24/2026
11.0.0-preview.7.26381.103 5 09/24/2026
11.0.0-preview.6.26359.118 8 07/26/2026
11.0.0-preview.5.26302.115 8 07/16/2026
11.0.0-preview.4.26230.115 7 05/30/2026
11.0.0-preview.3.26207.106 7 04/14/2026
11.0.0-preview.2.26159.112 10 03/24/2026
11.0.0-preview.1.26104.118 11 02/18/2026
10.0.15 1 11/19/2026
10.0.14 1 11/18/2026
10.0.13 2 10/21/2026
10.0.12 5 09/24/2026
10.0.11 5 09/12/2026
10.0.10 7 07/26/2026
10.0.9 7 07/16/2026
10.0.8 7 05/30/2026
10.0.7 9 05/30/2026
10.0.6 7 04/22/2026
10.0.5 7 03/25/2026
10.0.4 10 03/26/2026
10.0.3 9 02/19/2026
10.0.2 3 01/17/2026
10.0.1 2 12/17/2025
10.0.0 3 12/09/2025
10.0.0-rc.2.25502.107 3 12/09/2025
10.0.0-rc.1.25451.107 2 12/10/2025
10.0.0-preview.7.25380.108 0 12/11/2025
10.0.0-preview.6.25358.103 1 12/11/2025
10.0.0-preview.5.25277.114 0 12/11/2025
10.0.0-preview.4.25258.110 0 12/11/2025
10.0.0-preview.3.25171.5 1 12/10/2025
10.0.0-preview.2.25163.2 1 12/09/2025
10.0.0-preview.1.25080.5 1 12/10/2025
9.0.23 1 11/19/2026
9.0.22 1 11/03/2026
9.0.21 2 10/18/2026
9.0.20 6 09/24/2026
9.0.19 6 09/24/2026
9.0.18 7 07/25/2026
9.0.17 7 07/20/2026
9.0.16 6 05/30/2026
9.0.15 5 05/30/2026
9.0.14 9 03/26/2026
9.0.13 7 02/18/2026
9.0.12 3 01/18/2026
9.0.11 1 12/11/2025
9.0.10 2 12/11/2025
9.0.9 3 12/29/2025
9.0.8 3 12/31/2025
9.0.7 3 12/09/2025
9.0.6 4 12/10/2025
9.0.5 2 12/31/2025
9.0.4 4 12/09/2025
9.0.3 2 12/31/2025
9.0.2 2 12/31/2025
9.0.1 3 12/31/2025
9.0.0 3 12/29/2025
9.0.0-rc.2.24473.5 1 01/18/2026
9.0.0-rc.1.24431.7 2 01/02/2026
9.0.0-preview.7.24405.7 11 12/11/2025
9.0.0-preview.6.24327.7 1 12/11/2025
9.0.0-preview.5.24306.7 2 12/11/2025
9.0.0-preview.4.24266.19 1 01/18/2026
9.0.0-preview.3.24172.9 4 12/09/2025
9.0.0-preview.2.24128.5 1 12/09/2025
9.0.0-preview.1.24080.9 1 12/10/2025
8.0.0 3 12/29/2025
8.0.0-rc.2.23479.6 2 01/02/2026
8.0.0-rc.1.23419.4 8 12/09/2025
8.0.0-preview.7.23375.6 6 12/11/2025
8.0.0-preview.6.23329.7 10 12/11/2025
8.0.0-preview.5.23280.8 9 12/10/2025
8.0.0-preview.4.23259.5 12 12/11/2025
8.0.0-preview.3.23174.8 8 12/09/2025
8.0.0-preview.2.23128.3 8 12/10/2025
8.0.0-preview.1.23110.8 11 12/09/2025
7.0.0 11 12/09/2025
7.0.0-rc.2.22472.3 7 12/09/2025
7.0.0-rc.1.22426.10 7 12/09/2025
7.0.0-preview.7.22375.6 11 12/09/2025
7.0.0-preview.6.22324.4 11 12/09/2025
7.0.0-preview.5.22301.12 8 01/01/2026
7.0.0-preview.4.22229.4 7 12/10/2025
7.0.0-preview.3.22175.4 14 12/09/2025
7.0.0-preview.2.22152.2 11 12/10/2025
7.0.0-preview.1.22076.8 8 12/11/2025
6.0.0 9 12/11/2025
6.0.0-rc.2.21480.5 8 12/10/2025
6.0.0-rc.1.21451.13 7 12/11/2025
6.0.0-preview.7.21377.19 6 12/10/2025
6.0.0-preview.6.21352.12 8 12/09/2025
6.0.0-preview.5.21301.5 9 12/10/2025
6.0.0-preview.4.21253.7 9 12/11/2025
6.0.0-preview.3.21201.4 9 12/10/2025
6.0.0-preview.2.21154.6 14 12/09/2025
6.0.0-preview.1.21102.12 7 12/09/2025
5.0.0 11 12/10/2025
5.0.0-rc.2.20475.5 9 12/09/2025
5.0.0-rc.1.20451.14 8 12/11/2025
5.0.0-preview.8.20407.11 8 12/09/2025
5.0.0-preview.7.20364.11 7 12/10/2025
5.0.0-preview.6.20305.6 10 12/09/2025
5.0.0-preview.5.20278.1 13 12/11/2025
5.0.0-preview.4.20251.6 13 12/09/2025
5.0.0-preview.3.20214.6 7 12/10/2025
5.0.0-preview.2.20160.6 11 12/09/2025
5.0.0-preview.1.20120.5 9 12/10/2025
4.7.1 8 12/31/2025
4.7.0 9 12/31/2025
4.7.0-preview3.19551.4 9 01/19/2026
4.7.0-preview2.19523.17 7 01/17/2026
4.7.0-preview1.19504.10 9 12/09/2025
4.6.0 9 12/31/2025
4.6.0-rc1.19456.4 6 01/18/2026
4.6.0-preview9.19421.4 9 01/01/2026
4.6.0-preview9.19416.11 7 01/02/2026
4.6.0-preview8.19405.3 8 12/09/2025
4.6.0-preview7.19362.9 6 01/01/2026
4.6.0-preview6.19303.8 7 01/18/2026
4.6.0-preview6.19264.9 9 12/09/2025
4.6.0-preview5.19224.8 5 01/20/2026
4.6.0-preview4.19212.13 7 01/19/2026
4.6.0-preview3.19128.7 6 01/12/2026
4.6.0-preview.19073.11 9 12/09/2025
4.6.0-preview.18571.3 9 01/18/2026
4.5.0 12 12/11/2025
4.5.0-rc1 7 12/09/2025
4.5.0-preview2-26406-04 9 01/20/2026
4.5.0-preview1-26216-02 8 12/10/2025