System.Threading.Channels 11.0.0-preview.5.26302.115

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
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
134
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/fa72fa61b0d822ea8a3fbeb96f668340419ab5cd.
126
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/66772aff549b2981094175a6f2f69600596c1913.
125
Microsoft.CodeAnalysis.CSharp.Features
.NET Compiler Platform ("Roslyn") support for creating C# editing experiences. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/e68227ea677b76a3c603bd616f03ea6d952b2458.
124
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/e482b6e281d7db727fcb086ebbfae44dcba82c6d.
123
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/c3cc1d0ceeab1a65da0217e403851a1e8a30086a.
122
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/be9c072e1c8a9e6701e34d796b1d68098d08feab.
120
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/2b7d172669b2f7e55803b55f317cfcc2d4279d76.
119
Microsoft.CodeAnalysis.VisualBasic.Features
.NET Compiler Platform ("Roslyn") support for creating Visual Basic editing experiences. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/be9c072e1c8a9e6701e34d796b1d68098d08feab.
119
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/e091728607ca0fc9efca55ccfb3e59259c6b5a0a.
119
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/44555193fd1135b5d53a2099f76fec91e0d1ebde.
118
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/47b0a1e0ab831076eda00bb1e24b9d042d256e17.
117
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.
117
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/bde21ee2b98b775b010d01a93f81ef587fe80962.
116
Microsoft.CodeAnalysis.VisualBasic.Features
.NET Compiler Platform ("Roslyn") support for creating Visual Basic editing experiences. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/f99bb16a395e48a05520ba7af1549b20bfdeee36.
116
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/bf8791d0d1be92c24e56cefa52aa139e2b5340c2.
116
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/6544980c8335ce25d8959afd4b6ee308686fed53.
115
Microsoft.CodeAnalysis.CSharp.Features
.NET Compiler Platform ("Roslyn") support for creating C# editing experiences. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/bf8791d0d1be92c24e56cefa52aa139e2b5340c2.
115
Microsoft.CodeAnalysis.Features
.NET Compiler Platform ("Roslyn") support for creating editing experiences. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/e68227ea677b76a3c603bd616f03ea6d952b2458.
115
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/6a5a63bbc9f4449d9bd1e95a8f9624939c3ccdc3.
115

.NET 10.0

  • No dependencies.

.NET 11.0

  • No dependencies.

.NET Framework 4.6.2

.NET Standard 2.0

.NET Standard 2.1

  • No dependencies.

Version Downloads Last updated
11.0.0-preview.5.26302.115 7 6/9/2026
11.0.0-preview.4.26230.115 18 5/13/2026
11.0.0-preview.3.26207.106 19 5/4/2026
11.0.0-preview.2.26159.112 19 3/12/2026
11.0.0-preview.1.26104.118 21 2/12/2026
10.0.9 4 6/9/2026
10.0.8 14 5/13/2026
10.0.7 14 5/4/2026
10.0.6 17 5/4/2026
10.0.5 19 3/14/2026
10.0.4 16 3/12/2026
10.0.3 21 2/12/2026
10.0.2 28 1/15/2026
10.0.1 34 12/10/2025
10.0.0 48 11/12/2025
10.0.0-rc.2.25502.107 59 10/14/2025
10.0.0-rc.1.25451.107 73 9/10/2025
10.0.0-preview.7.25380.108 76 8/15/2025
10.0.0-preview.6.25358.103 78 7/16/2025
10.0.0-preview.5.25277.114 92 6/7/2025
10.0.0-preview.4.25258.110 78 5/17/2025
10.0.0-preview.3.25171.5 77 4/15/2025
10.0.0-preview.2.25163.2 79 3/23/2025
10.0.0-preview.1.25080.5 97 2/27/2025
9.0.17 2 6/13/2026
9.0.16 16 5/13/2026
9.0.15 17 5/4/2026
9.0.14 20 3/12/2026
9.0.13 19 2/12/2026
9.0.12 24 1/16/2026
9.0.11 50 11/12/2025
9.0.10 62 10/14/2025
9.0.9 76 9/10/2025
9.0.8 94 8/8/2025
9.0.7 87 7/11/2025
9.0.6 89 6/16/2025
9.0.5 107 5/18/2025
9.0.4 82 4/11/2025
9.0.3 105 3/15/2025
9.0.2 106 2/16/2025
9.0.1 115 1/22/2025
9.0.0 119 11/19/2024
9.0.0-rc.2.24473.5 93 10/25/2024
9.0.0-rc.1.24431.7 94 9/12/2024
9.0.0-preview.7.24405.7 102 8/14/2024
9.0.0-preview.6.24327.7 101 7/10/2024
9.0.0-preview.5.24306.7 100 6/16/2024
9.0.0-preview.4.24266.19 93 5/28/2024
9.0.0-preview.3.24172.9 116 4/13/2024
9.0.0-preview.2.24128.5 94 3/16/2024
9.0.0-preview.1.24080.9 107 2/27/2024
8.0.0 120 11/15/2023
8.0.0-rc.2.23479.6 140 10/13/2023
8.0.0-rc.1.23419.4 113 9/15/2023
8.0.0-preview.7.23375.6 118 8/20/2023
8.0.0-preview.6.23329.7 116 7/23/2023
8.0.0-preview.5.23280.8 117 8/1/2023
8.0.0-preview.4.23259.5 122 7/15/2023
8.0.0-preview.3.23174.8 134 5/13/2023
8.0.0-preview.2.23128.3 112 3/17/2023
8.0.0-preview.1.23110.8 125 2/22/2023
7.0.0 143 12/4/2022
7.0.0-rc.2.22472.3 125 12/4/2022
7.0.0-rc.1.22426.10 123 9/15/2022
7.0.0-preview.7.22375.6 120 9/16/2022
7.0.0-preview.6.22324.4 110 9/16/2022
7.0.0-preview.5.22301.12 112 9/16/2022
7.0.0-preview.4.22229.4 122 9/16/2022
7.0.0-preview.3.22175.4 121 9/16/2022
7.0.0-preview.2.22152.2 117 9/16/2022
7.0.0-preview.1.22076.8 121 9/16/2022
6.0.2-mauipre.1.22102.15 152 9/16/2022
6.0.2-mauipre.1.22054.8 100 9/16/2022
6.0.0 122 9/16/2022
6.0.0-rc.2.21480.5 110 9/16/2022
6.0.0-rc.1.21451.13 133 9/16/2022
6.0.0-preview.7.21377.19 104 9/16/2022
6.0.0-preview.6.21352.12 113 9/16/2022
6.0.0-preview.5.21301.5 110 9/16/2022
6.0.0-preview.4.21253.7 117 9/16/2022
6.0.0-preview.3.21201.4 116 9/16/2022
6.0.0-preview.2.21154.6 110 9/16/2022
6.0.0-preview.1.21102.12 112 9/16/2022
5.0.0 120 9/16/2022
5.0.0-rc.2.20475.5 103 9/16/2022
5.0.0-rc.1.20451.14 116 9/16/2022
5.0.0-preview.8.20407.11 111 9/16/2022
5.0.0-preview.7.20364.11 114 9/16/2022
5.0.0-preview.6.20305.6 132 9/16/2022
5.0.0-preview.5.20278.1 106 9/16/2022
5.0.0-preview.4.20251.6 111 9/16/2022
5.0.0-preview.3.20214.6 120 9/16/2022
5.0.0-preview.2.20160.6 124 9/16/2022
5.0.0-preview.1.20120.5 104 9/16/2022
4.7.1 149 9/16/2022
4.7.0 121 9/16/2022
4.7.0-preview3.19551.4 105 9/16/2022
4.7.0-preview2.19523.17 112 9/16/2022
4.7.0-preview1.19504.10 114 9/16/2022
4.6.0 137 9/16/2022
4.6.0-rc1.19456.4 120 9/16/2022
4.6.0-preview9.19421.4 114 9/16/2022
4.6.0-preview9.19416.11 122 9/16/2022
4.6.0-preview8.19405.3 116 9/16/2022
4.6.0-preview7.19362.9 112 9/16/2022
4.6.0-preview6.19303.8 106 9/16/2022
4.6.0-preview6.19264.9 110 9/16/2022
4.6.0-preview5.19224.8 114 9/16/2022
4.6.0-preview4.19212.13 109 9/16/2022
4.6.0-preview3.19128.7 121 9/16/2022
4.6.0-preview.19073.11 109 9/16/2022
4.6.0-preview.18571.3 114 9/16/2022
4.5.0 116 9/16/2022
4.5.0-rc1 118 9/16/2022
4.5.0-preview2-26406-04 108 9/16/2022
4.5.0-preview1-26216-02 115 9/16/2022