BoundedChannelFullMode 列舉

定義

指定寫入至已滿的繫結通道時要使用的行為。

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

欄位

DropNewest 1

移除並忽略通道中最新的項目,以騰出空間給要寫入的項目。

DropOldest 2

移除並忽略通道中最舊的項目,以騰出空間給要寫入的項目。

DropWrite 3

捨棄正在寫入的項目。

Wait 0

等候空間變為可用以完成寫入作業。

適用於