<PackageReference Include="System.Threading.Channels" Version="11.0.0-preview.6.26359.118" />

System.Threading.Channels.Channel

public static class Channel
Provides static methods for creating channels.
public static Channel<T> CreateBounded<T>(int capacity)

Creates a channel with the specified maximum capacity.

public static Channel<T> CreateBounded<T>(BoundedChannelOptions options)

Creates a channel with the specified maximum capacity.

public static Channel<T> CreateBounded<T>(BoundedChannelOptions options, Action<T> itemDropped)

Creates a channel subject to the provided options.

public static Channel<T> CreateUnbounded<T>()

Creates an unbounded channel usable by any number of readers and writers concurrently.

public static Channel<T> CreateUnbounded<T>(UnboundedChannelOptions options)

Creates an unbounded channel subject to the provided options.