System.Threading.Channels 10.0.15

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/47b0a1e0ab831076eda00bb1e24b9d042d256e17.
146
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.
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/fa72fa61b0d822ea8a3fbeb96f668340419ab5cd.
145
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.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.
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/bf8791d0d1be92c24e56cefa52aa139e2b5340c2.
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/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/bde21ee2b98b775b010d01a93f81ef587fe80962.
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.
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/c3cc1d0ceeab1a65da0217e403851a1e8a30086a.
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/e091728607ca0fc9efca55ccfb3e59259c6b5a0a.
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/6544980c8335ce25d8959afd4b6ee308686fed53.
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.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.
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/81d9274600db701a8b08ed8af3fd6b00a775cc33.
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/5e3a11e2e7f952da93f9d35bd63a2fa181c0608b.
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
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.
134

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