ConcurrentTokenizedPriorityQueueTKey, TValue, TTokenEnqueue Method |
Enqueues an item consisting of a key and a value. The priority queue has to be constructed to generate tokens by itself in order to use this function. Otherwise an exception is thrown.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public void Enqueue(
TKey key,
TValue value,
out TToken token
)
Parameters
- key TKey
- The key.
- value TValue
- The value.
- token TToken
- Returns a token associated with the enqueued key/value pair. The token can later be used to manipulate the entry in the queue.
Exceptions Exception | Condition |
---|
InvalidOperationException | This queue is unable to generate tokens by itself. You have to construct the priority queue using a token generating function. |
See Also