BoundedChannelFullMode 枚举

定义

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

public enum class BoundedChannelFullMode
public enum BoundedChannelFullMode
type BoundedChannelFullMode = 
Public Enum BoundedChannelFullMode
继承
BoundedChannelFullMode

字段

DropNewest 1

删除并忽略通道中的最新项,以便为要写入的项留出空间。Removes and ignores the newest item in the channel in order to make room for the item being written.

DropOldest 2

删除并忽略通道中的最旧项,以便为要写入的项留出空间。Removes and ignores the oldest item in the channel in order to make room for the item being written.

DropWrite 3

删除要写入的项。Drops the item being written.

Wait 0

等待空间可用以便完成写入操作。Waits for space to be available in order to complete the write operation.

适用于