System.Threading.Channels 11.0.0

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
155
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.
147
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.
146
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.
145
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.
143
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.
143
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.
142
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.
142
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/bde21ee2b98b775b010d01a93f81ef587fe80962.
142
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.
141
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.
141
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.
141
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.
140
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.
139
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.
139
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.
137
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/5e3a11e2e7f952da93f9d35bd63a2fa181c0608b.
137
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/5e3a11e2e7f952da93f9d35bd63a2fa181c0608b.
135
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.
135
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/e68227ea677b76a3c603bd616f03ea6d952b2458.
135

.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 9 11/10/2026
11.0.0-rc.3.26522.148 24 10/28/2026
11.0.0-rc.2.26504.105 20 10/14/2026
11.0.0-rc.1.26425.128 26 9/9/2026
11.0.0-preview.7.26381.103 36 8/13/2026
11.0.0-preview.6.26359.118 35 7/18/2026
11.0.0-preview.5.26302.115 38 6/9/2026
11.0.0-preview.4.26230.115 48 5/13/2026
11.0.0-preview.3.26207.106 46 5/4/2026
11.0.0-preview.2.26159.112 48 3/12/2026
11.0.0-preview.1.26104.118 43 2/12/2026
10.0.15 9 11/10/2026
10.0.14 20 10/28/2026
10.0.13 19 10/14/2026
10.0.12 24 9/9/2026
10.0.11 33 8/13/2026
10.0.10 43 7/18/2026
10.0.9 38 6/9/2026
10.0.8 40 5/13/2026
10.0.7 42 5/4/2026
10.0.6 42 5/4/2026
10.0.5 39 3/14/2026
10.0.4 41 3/12/2026
10.0.3 42 2/12/2026
10.0.2 53 1/15/2026
10.0.1 58 12/10/2025
10.0.0 70 11/12/2025
10.0.0-rc.2.25502.107 80 10/14/2025
10.0.0-rc.1.25451.107 94 9/10/2025
10.0.0-preview.7.25380.108 93 8/15/2025
10.0.0-preview.6.25358.103 100 7/16/2025
10.0.0-preview.5.25277.114 111 6/7/2025
10.0.0-preview.4.25258.110 97 5/17/2025
10.0.0-preview.3.25171.5 97 4/15/2025
10.0.0-preview.2.25163.2 96 3/23/2025
10.0.0-preview.1.25080.5 117 2/27/2025
9.0.23 7 11/10/2026
9.0.22 24 10/27/2026
9.0.21 26 10/14/2026
9.0.20 26 9/10/2026
9.0.19 31 8/13/2026
9.0.18 29 7/19/2026
9.0.17 46 6/13/2026
9.0.16 40 5/13/2026
9.0.15 45 5/4/2026
9.0.14 41 3/12/2026
9.0.13 47 2/12/2026
9.0.12 51 1/16/2026
9.0.11 69 11/12/2025
9.0.10 85 10/14/2025
9.0.9 103 9/10/2025
9.0.8 116 8/8/2025
9.0.7 107 7/11/2025
9.0.6 110 6/16/2025
9.0.5 130 5/18/2025
9.0.4 96 4/11/2025
9.0.3 126 3/15/2025
9.0.2 133 2/16/2025
9.0.1 132 1/22/2025
9.0.0 138 11/19/2024
9.0.0-rc.2.24473.5 112 10/25/2024
9.0.0-rc.1.24431.7 110 9/12/2024
9.0.0-preview.7.24405.7 124 8/14/2024
9.0.0-preview.6.24327.7 126 7/10/2024
9.0.0-preview.5.24306.7 115 6/16/2024
9.0.0-preview.4.24266.19 115 5/28/2024
9.0.0-preview.3.24172.9 136 4/13/2024
9.0.0-preview.2.24128.5 115 3/16/2024
9.0.0-preview.1.24080.9 122 2/27/2024
8.0.0 139 11/15/2023
8.0.0-rc.2.23479.6 159 10/13/2023
8.0.0-rc.1.23419.4 130 9/15/2023
8.0.0-preview.7.23375.6 136 8/20/2023
8.0.0-preview.6.23329.7 135 7/23/2023
8.0.0-preview.5.23280.8 136 8/1/2023
8.0.0-preview.4.23259.5 139 7/15/2023
8.0.0-preview.3.23174.8 152 5/13/2023
8.0.0-preview.2.23128.3 128 3/17/2023
8.0.0-preview.1.23110.8 149 2/22/2023
7.0.0 163 12/4/2022
7.0.0-rc.2.22472.3 141 12/4/2022
7.0.0-rc.1.22426.10 140 9/15/2022
7.0.0-preview.7.22375.6 137 9/16/2022
7.0.0-preview.6.22324.4 128 9/16/2022
7.0.0-preview.5.22301.12 132 9/16/2022
7.0.0-preview.4.22229.4 143 9/16/2022
7.0.0-preview.3.22175.4 143 9/16/2022
7.0.0-preview.2.22152.2 133 9/16/2022
7.0.0-preview.1.22076.8 135 9/16/2022
6.0.2-mauipre.1.22102.15 173 9/16/2022
6.0.2-mauipre.1.22054.8 122 9/16/2022
6.0.0 137 9/16/2022
6.0.0-rc.2.21480.5 131 9/16/2022
6.0.0-rc.1.21451.13 147 9/16/2022
6.0.0-preview.7.21377.19 117 9/16/2022
6.0.0-preview.6.21352.12 130 9/16/2022
6.0.0-preview.5.21301.5 132 9/16/2022
6.0.0-preview.4.21253.7 138 9/16/2022
6.0.0-preview.3.21201.4 137 9/16/2022
6.0.0-preview.2.21154.6 135 9/16/2022
6.0.0-preview.1.21102.12 132 9/16/2022
5.0.0 140 9/16/2022
5.0.0-rc.2.20475.5 124 9/16/2022
5.0.0-rc.1.20451.14 143 9/16/2022
5.0.0-preview.8.20407.11 132 9/16/2022
5.0.0-preview.7.20364.11 135 9/16/2022
5.0.0-preview.6.20305.6 151 9/16/2022
5.0.0-preview.5.20278.1 122 9/16/2022
5.0.0-preview.4.20251.6 130 9/16/2022
5.0.0-preview.3.20214.6 136 9/16/2022
5.0.0-preview.2.20160.6 141 9/16/2022
5.0.0-preview.1.20120.5 129 9/16/2022
4.7.1 171 9/16/2022
4.7.0 139 9/16/2022
4.7.0-preview3.19551.4 126 9/16/2022
4.7.0-preview2.19523.17 129 9/16/2022
4.7.0-preview1.19504.10 132 9/16/2022
4.6.0 162 9/16/2022
4.6.0-rc1.19456.4 138 9/16/2022
4.6.0-preview9.19421.4 130 9/16/2022
4.6.0-preview9.19416.11 200 9/16/2022
4.6.0-preview8.19405.3 133 9/16/2022
4.6.0-preview7.19362.9 134 9/16/2022
4.6.0-preview6.19303.8 126 9/16/2022
4.6.0-preview6.19264.9 127 9/16/2022
4.6.0-preview5.19224.8 137 9/16/2022
4.6.0-preview4.19212.13 131 9/16/2022
4.6.0-preview3.19128.7 137 9/16/2022
4.6.0-preview.19073.11 130 9/16/2022
4.6.0-preview.18571.3 138 9/16/2022
4.5.0 143 9/16/2022
4.5.0-rc1 138 9/16/2022
4.5.0-preview2-26406-04 126 9/16/2022
4.5.0-preview1-26216-02 141 9/16/2022