System.Threading.Channels 10.0.0-rc.1.25451.107

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
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv
Libuv transport for the ASP.NET Core Kestrel cross-platform web server. This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/c5f85986e62dabfc0b7f2f2a45dc7c22e8ac815f
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/21d42143378ad6cc4bcbaebfda5f3acddf13aa47
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/64ea4108e7dcf1ca575f8dd2028363b0b1ef6ebc
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/2e51a0b6eba74bdf02aee71944e973487937cb99
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/8899cb30120d41413065f1b1465cdabefe0a1f9c
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/d5dc8a13cc618b9cbdc1e5744b4806c594d49553
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/de35e2b0a0d8d5d1e307907983a6838da1092898
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
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/1f49b6637a0c3a6af34b42332e06966e4d383d54
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/564969bca155b40432d101ec35f24a0e81e6afa0
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/1d696053fcd6735aaac1902afdb0b92edbf43e71
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
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/b92c9f50f0333ea661785ba849f303cde6a93844
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/b908e913e3befcfe241f3294509e6d9570acc07b

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 Last updated
10.0.0-rc.1.25451.107 9/13/2025
10.0.0-preview.7.25380.108 8/25/2025
10.0.0-preview.6.25358.103 7/17/2025
10.0.0-preview.5.25277.114 6/11/2025
10.0.0-preview.4.25258.110 5/13/2025
10.0.0-preview.3.25171.5 4/21/2025
10.0.0-preview.2.25163.2 3/22/2025
10.0.0-preview.1.25080.5 3/22/2025
9.0.9 9/13/2025
9.0.8 8/25/2025
9.0.7 7/14/2025
9.0.6 6/15/2025
9.0.5 5/15/2025
9.0.4 4/21/2025
9.0.3 3/16/2025
9.0.2 3/16/2025
9.0.1 4/30/2025
9.0.0 6/7/2025
9.0.0-rc.2.24473.5 5/7/2025
9.0.0-rc.1.24431.7 3/17/2025
9.0.0-preview.7.24405.7 3/17/2025
9.0.0-preview.6.24327.7 3/24/2025
9.0.0-preview.5.24306.7 5/23/2025
9.0.0-preview.4.24266.19 5/23/2025
9.0.0-preview.3.24172.9 3/16/2025
9.0.0-preview.2.24128.5 3/21/2025
9.0.0-preview.1.24080.9 3/17/2025
8.0.0 3/29/2025
8.0.0-rc.2.23479.6 3/22/2025
8.0.0-rc.1.23419.4 5/4/2025
8.0.0-preview.7.23375.6 3/31/2025
8.0.0-preview.6.23329.7 3/17/2025
8.0.0-preview.5.23280.8 3/22/2025
8.0.0-preview.4.23259.5 7/8/2025
8.0.0-preview.3.23174.8 3/20/2025
8.0.0-preview.2.23128.3 3/17/2025
8.0.0-preview.1.23110.8 3/22/2025
7.0.0 3/12/2025
7.0.0-rc.2.22472.3 3/16/2025
7.0.0-rc.1.22426.10 3/16/2025
7.0.0-preview.7.22375.6 3/21/2025
7.0.0-preview.6.22324.4 3/22/2025
7.0.0-preview.5.22301.12 6/12/2025
7.0.0-preview.4.22229.4 3/21/2025
7.0.0-preview.3.22175.4 3/17/2025
7.0.0-preview.2.22152.2 3/20/2025
7.0.0-preview.1.22076.8 3/31/2025
6.0.2-mauipre.1.22054.8 7/19/2025
6.0.0 3/27/2025
6.0.0-rc.2.21480.5 5/27/2025
6.0.0-rc.1.21451.13 3/20/2025
6.0.0-preview.7.21377.19 3/26/2025
6.0.0-preview.6.21352.12 7/15/2025
6.0.0-preview.5.21301.5 4/16/2025
6.0.0-preview.4.21253.7 3/20/2025
6.0.0-preview.3.21201.4 4/29/2025
6.0.0-preview.2.21154.6 3/22/2025
6.0.0-preview.1.21102.12 3/31/2025
5.0.0 3/22/2025
5.0.0-rc.2.20475.5 3/31/2025
5.0.0-rc.1.20451.14 3/22/2025
5.0.0-preview.8.20407.11 3/16/2025
5.0.0-preview.7.20364.11 3/17/2025
5.0.0-preview.6.20305.6 3/17/2025
5.0.0-preview.5.20278.1 3/17/2025
5.0.0-preview.4.20251.6 3/14/2025
5.0.0-preview.3.20214.6 3/20/2025
5.0.0-preview.2.20160.6 3/22/2025
5.0.0-preview.1.20120.5 7/15/2025
4.7.1 3/22/2025
4.7.0 4/23/2025
4.7.0-preview3.19551.4 3/22/2025
4.7.0-preview2.19523.17 3/20/2025
4.7.0-preview1.19504.10 7/15/2025
4.6.0 6/12/2025
4.6.0-rc1.19456.4 3/22/2025
4.6.0-preview9.19421.4 3/20/2025
4.6.0-preview9.19416.11 7/16/2025
4.6.0-preview8.19405.3 3/24/2025
4.6.0-preview7.19362.9 3/22/2025
4.6.0-preview6.19303.8 3/21/2025
4.6.0-preview6.19264.9 3/21/2025
4.6.0-preview5.19224.8 5/2/2025
4.6.0-preview4.19212.13 3/22/2025
4.6.0-preview3.19128.7 3/22/2025
4.6.0-preview.19073.11 3/16/2025
4.6.0-preview.18571.3 6/15/2025
4.5.0 5/30/2025
4.5.0-rc1 3/17/2025
4.5.0-preview2-26406-04 3/12/2025
4.5.0-preview1-26216-02 3/20/2025