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

System.Threading.Channels.Channel<TWrite, TRead>

public abstract class Channel<TWrite, TRead>
Provides a base class for channels that support reading elements of type TRead and writing elements of type TWrite.
public ChannelReader<TRead> Reader { get; protected set; }

Gets the readable half of this channel.

public ChannelWriter<TWrite> Writer { get; protected set; }

Gets the writable half of this channel.

protected Channel()

Initializes an instance of the Channel<T, U> class.

public static ChannelReader<TRead> op_Implicit(Channel<TWrite, TRead> channel)

Implicit cast from a Channel<T, U> to its readable half.

public static ChannelWriter<TWrite> op_Implicit(Channel<TWrite, TRead> channel)

Implicit cast from a Channel<T, U> to its writable half.