<PackageReference Include="System.Threading.Channels" Version="10.0.10" />

System.Threading.Channels.BoundedChannelOptions

public sealed class BoundedChannelOptions : ChannelOptions
Provides options that control the behavior of bounded Channel<T> instances.
public int Capacity { get; set; }

Gets or sets the maximum number of items the bounded channel may store.

public BoundedChannelFullMode FullMode { get; set; }

Gets or sets the behavior incurred by write operations when the channel is full.

public BoundedChannelOptions(int capacity)

Initializes the options.