System.Threading.Channels 11.0.0-preview.3.26207.106

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.
20
MassTransit.AmazonSQS
MassTransit ActiveMQ transport support; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
19
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.
14
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.
13
MassTransit
MassTransit provides a developer-focused, modern platform for creating distributed applications without complexity.
13
StackExchange.Redis
High performance Redis client, incorporating both synchronous and asynchronous usage.
12
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
11
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
11
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/55738ff96b832439076e25584cfe0eb3bace9b01
10
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
10
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
10
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
10
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.
10
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.
9
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/f6b3a5da75eb405046889a5447ec9b14cc29d285
9
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
9
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/773e8cc3fbdc2c4ffbd57c1f53f21649ef94c35c
9
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
9
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/f050ae044be8bddc002ab88736e4bf78dc822122
9
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/277e317dd5cab9859ceea4c8ebae218522c2c173
9

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

.NET Framework 4.6.2

.NET 10.0

  • No dependencies.

.NET 11.0

  • No dependencies.

.NET Standard 2.0

.NET Standard 2.1

  • No dependencies.

Version Downloads Last updated
11.0.0-preview.4.26230.115 0 05/12/2026
11.0.0-preview.3.26207.106 1 04/14/2026
11.0.0-preview.2.26159.112 3 03/24/2026
11.0.0-preview.1.26104.118 6 02/18/2026
10.0.8 0 05/12/2026
10.0.7 0 04/21/2026
10.0.6 1 04/22/2026
10.0.5 2 03/25/2026
10.0.4 3 03/26/2026
10.0.3 4 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.16 0 05/12/2026
9.0.15 0 04/14/2026
9.0.14 4 03/26/2026
9.0.13 4 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 4 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 3 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 6 12/09/2025
8.0.0-preview.7.23375.6 4 12/11/2025
8.0.0-preview.6.23329.7 5 12/11/2025
8.0.0-preview.5.23280.8 4 12/10/2025
8.0.0-preview.4.23259.5 6 12/11/2025
8.0.0-preview.3.23174.8 4 12/09/2025
8.0.0-preview.2.23128.3 5 12/10/2025
8.0.0-preview.1.23110.8 5 12/09/2025
7.0.0 7 12/09/2025
7.0.0-rc.2.22472.3 5 12/09/2025
7.0.0-rc.1.22426.10 5 12/09/2025
7.0.0-preview.7.22375.6 6 12/09/2025
7.0.0-preview.6.22324.4 5 12/09/2025
7.0.0-preview.5.22301.12 5 01/01/2026
7.0.0-preview.4.22229.4 3 12/10/2025
7.0.0-preview.3.22175.4 8 12/09/2025
7.0.0-preview.2.22152.2 4 12/10/2025
7.0.0-preview.1.22076.8 4 12/11/2025
6.0.0 6 12/11/2025
6.0.0-rc.2.21480.5 5 12/10/2025
6.0.0-rc.1.21451.13 4 12/11/2025
6.0.0-preview.7.21377.19 5 12/10/2025
6.0.0-preview.6.21352.12 5 12/09/2025
6.0.0-preview.5.21301.5 5 12/10/2025
6.0.0-preview.4.21253.7 5 12/11/2025
6.0.0-preview.3.21201.4 6 12/10/2025
6.0.0-preview.2.21154.6 7 12/09/2025
6.0.0-preview.1.21102.12 5 12/09/2025
5.0.0 6 12/10/2025
5.0.0-rc.2.20475.5 5 12/09/2025
5.0.0-rc.1.20451.14 5 12/11/2025
5.0.0-preview.8.20407.11 6 12/09/2025
5.0.0-preview.7.20364.11 5 12/10/2025
5.0.0-preview.6.20305.6 5 12/09/2025
5.0.0-preview.5.20278.1 6 12/11/2025
5.0.0-preview.4.20251.6 8 12/09/2025
5.0.0-preview.3.20214.6 6 12/10/2025
5.0.0-preview.2.20160.6 5 12/09/2025
5.0.0-preview.1.20120.5 5 12/10/2025
4.7.1 5 12/31/2025
4.7.0 5 12/31/2025
4.7.0-preview3.19551.4 5 01/19/2026
4.7.0-preview2.19523.17 5 01/17/2026
4.7.0-preview1.19504.10 6 12/09/2025
4.6.0 7 12/31/2025
4.6.0-rc1.19456.4 5 01/18/2026
4.6.0-preview9.19421.4 6 01/01/2026
4.6.0-preview9.19416.11 5 01/02/2026
4.6.0-preview8.19405.3 6 12/09/2025
4.6.0-preview7.19362.9 4 01/01/2026
4.6.0-preview6.19303.8 5 01/18/2026
4.6.0-preview6.19264.9 6 12/09/2025
4.6.0-preview5.19224.8 3 01/20/2026
4.6.0-preview4.19212.13 5 01/19/2026
4.6.0-preview3.19128.7 4 01/12/2026
4.6.0-preview.19073.11 6 12/09/2025
4.6.0-preview.18571.3 5 01/18/2026
4.5.0 8 12/11/2025
4.5.0-rc1 5 12/09/2025
4.5.0-preview2-26406-04 8 01/20/2026
4.5.0-preview1-26216-02 6 12/10/2025