Szerkesztés

Megosztás a következőn keresztül:


ImmutableInterlocked.Enqueue<T>(ImmutableQueue<T>, T) Method

Definition

Atomically enqueues an element to the end of a queue.

public:
generic <typename T>
 static void Enqueue(System::Collections::Immutable::ImmutableQueue<T> ^ % location, T value);
public static void Enqueue<T> (ref System.Collections.Immutable.ImmutableQueue<T> location, T value);
static member Enqueue : ImmutableQueue * 'T -> unit
Public Shared Sub Enqueue(Of T) (ByRef location As ImmutableQueue(Of T), value As T)

Type Parameters

T

The type of items contained in the collection.

Parameters

location
ImmutableQueue<T>

The variable or field to atomically update.

value
T

The value to enqueue.

Applies to