語言

Channel.CreateUnboundedPrioritized 方法

定義

多載

名稱 Description
CreateUnboundedPrioritized<T>()

建立一個無限優先的通道,可同時供任意數量的讀者與寫者使用。

CreateUnboundedPrioritized<T>(UnboundedPrioritizedChannelOptions<T>)

建立一個無界優先頻道,受限於提供的選項。

CreateUnboundedPrioritized<T>()

來源:
Channel.netcoreapp.cs
來源:
Channel.netcoreapp.cs
來源:
Channel.netcoreapp.cs
來源:
Channel.netcoreapp.cs
來源:
Channel.netcoreapp.cs

建立一個無限優先的通道,可同時供任意數量的讀者與寫者使用。

public:
generic <typename T>
 static System::Threading::Channels::Channel<T> ^ CreateUnboundedPrioritized();
public static System.Threading.Channels.Channel<T> CreateUnboundedPrioritized<T>();
static member CreateUnboundedPrioritized : unit -> System.Threading.Channels.Channel<'T>
Public Shared Function CreateUnboundedPrioritized(Of T) () As Channel(Of T)

類型參數

T

傳回

已建立的頻道。

備註

Default 用來決定元素的優先順序。 下一個從通道讀取的項目,將是優先權最低的通道中可用元素。

適用於

CreateUnboundedPrioritized<T>(UnboundedPrioritizedChannelOptions<T>)

來源:
Channel.netcoreapp.cs
來源:
Channel.netcoreapp.cs
來源:
Channel.netcoreapp.cs
來源:
Channel.netcoreapp.cs
來源:
Channel.netcoreapp.cs

建立一個無界優先頻道,受限於提供的選項。

public:
generic <typename T>
 static System::Threading::Channels::Channel<T> ^ CreateUnboundedPrioritized(System::Threading::Channels::UnboundedPrioritizedChannelOptions<T> ^ options);
public static System.Threading.Channels.Channel<T> CreateUnboundedPrioritized<T>(System.Threading.Channels.UnboundedPrioritizedChannelOptions<T> options);
static member CreateUnboundedPrioritized : System.Threading.Channels.UnboundedPrioritizedChannelOptions<'T> -> System.Threading.Channels.Channel<'T>
Public Shared Function CreateUnboundedPrioritized(Of T) (options As UnboundedPrioritizedChannelOptions(Of T)) As Channel(Of T)

類型參數

T

指定通道中的資料類型。

參數

options
UnboundedPrioritizedChannelOptions<T>

引導頻道行為的選項。

傳回

已建立的頻道。

備註

所提供的 options 的 用Comparer來決定元素的優先順序,或Default是否將提供的比較器 。null 下一個從通道讀取的項目,將是優先權最低的通道中可用元素。

適用於