System.Threading.Channels Namespace

提供用于在生成者和使用者之间以异步方式传递数据的一组同步数据结构。 Provides a set of synchronization data structures for passing data between producers and consumers asynchronously.

BoundedChannelOptions

提供用于控制有界 Channel<T> 实例的行为的选项。Provides options that control the behavior of bounded Channel<T> instances.

Channel

提供用于创建通道的静态方法。Provides static methods for creating channels.

Channel<T>

提供支持读取和写入类型 T 的元素的通道的基类。Provides a base class for channels that support reading and writing elements of type T.

Channel<TWrite,TRead>

提供支持读取类型 TRead 的元素和写入类型 TWrite 的元素的通道的基类。Provides a base class for channels that support reading elements of type TRead and writing elements of type TWrite.

ChannelClosedException

关闭通道后使用该通道时引发的异常。Exception thrown when a channel is used after it's been closed.

ChannelOptions

提供用于控制通道实例的行为的选项。Provides options that control the behavior of channel instances.

ChannelReader<T>

提供用于从通道中读取的基类。Provides a base class for reading from a channel.

ChannelWriter<T>

提供用于写入到通道的基类。Provides a base class for writing to a channel.

UnboundedChannelOptions

提供用于控制无界 Channel<T> 实例的行为的选项。Provides options that control the behavior of unbounded Channel<T> instances.

枚举

BoundedChannelFullMode

指定写入到已满的有限通道时要使用的行为。Specifies the behavior to use when writing to a bounded channel that is already full.