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>()

Source:
Channel.netcoreapp.cs

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

C#
public static System.Threading.Channels.Channel<T> CreateUnboundedPrioritized<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

.NET 10 and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 9, 10 (package-provided), 10

CreateUnboundedPrioritized<T>(UnboundedPrioritizedChannelOptions<T>)

Source:
Channel.netcoreapp.cs

Creates an unbounded prioritized channel subject to the provided options.

C#
public static System.Threading.Channels.Channel<T> CreateUnboundedPrioritized<T>(System.Threading.Channels.UnboundedPrioritizedChannelOptions<T> options);

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

.NET 10 and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 9, 10 (package-provided), 10