System Threading Channels

v10.0.700·Updated 2026-04-23

NuGet System.Threading.Channels package re-bundled for convenient consumption and dependency management.

About this mod Author’s original text

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 channel = Channel.CreateUnbounded();

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
  • System.Threading.Channel

Additional Documentation

  • Overview
  • API documentation

Related Packages

Feedback & Contributing

System.Threading.Channels is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

File & checksum

Filename
System_Threading_Channels-10.0.700.zip
File size
43.9 KiB