Редактиране

Споделяне чрез


Channel.CreateUnboundedPrioritized Method

Definition

Overloads

CreateUnboundedPrioritized<T>()

Creates an unbounded prioritized channel usable by any number of readers and writers concurrently.

CreateUnboundedPrioritized<T>(UnboundedPrioritizedChannelOptions<T>)

Creates an unbounded prioritized channel subject to the provided options.

CreateUnboundedPrioritized<T>()

Creates an unbounded prioritized channel usable by any number of readers and writers concurrently.

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)

Type Parameters

T

Returns

The created channel.

Remarks

Default is used to determine priority of elements. The next item read from the channel will be the element available in the channel with the lowest priority value.

Applies to

CreateUnboundedPrioritized<T>(UnboundedPrioritizedChannelOptions<T>)

Creates an unbounded prioritized channel subject to the provided options.

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)

Type Parameters

T

Specifies the type of data in the channel.

Parameters

options
UnboundedPrioritizedChannelOptions<T>

Options that guide the behavior of the channel.

Returns

The created channel.

Remarks

The Comparer of the supplied options is used to determine priority of elements, or Default if the provided comparer is null. The next item read from the channel will be the element available in the channel with the lowest priority value.

Applies to