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

System.Threading.Channels.ChannelOptions

public abstract class ChannelOptions
Provides options that control the behavior of channel instances.
public bool AllowSynchronousContinuations { get; set; }

true if operations performed on a channel may synchronously invoke continuations subscribed to notifications of pending async operations; false if all continuations should be invoked asynchronously.

public bool SingleReader { get; set; }

true readers from the channel guarantee that there will only ever be at most one read operation at a time; false if no such constraint is guaranteed.

public bool SingleWriter { get; set; }

true if writers to the channel guarantee that there will only ever be at most one write operation at a time; false if no such constraint is guaranteed.

protected ChannelOptions()

Initializes an instance of the ChannelOptions class.