System.Threading.Channels 10.0.0-rc.2.25502.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
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/4ae1269bff83362236d0f3bd4c9302e6a1e9341c
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/be51b1aa73343e45a1d00afd436abad794f471fb
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/dc5e11abdb05b322f4b74b3afbcfb352fe984b2e
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/c3acdcac86dad91c3d3fbc3b93ecc6b7ba494bdc
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/4a42afc5aea63750638e118560d43db04bd9ccc2
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/f6cb1b5953598e1562d33e1cbbdae2b130792833
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/2b7e994b8a304700a09617ffc5052f0d943bbcba
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR This package was built from the source at: https://github.com/aspnet/SignalR/tree/d20d4f128e295dd491f955277bb24ac16ddca32a
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/e276c8174b8bfdeb70efceafa81c75f8badbc8db
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/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/d12868dd7c10ff0433c16b06d3b59d03c40d987a
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/979632683c720152cc04d0684644c40512f4e953

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.2.25502.107 10/16/2025
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.10 10/16/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.22102.15 9/30/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