Click or drag to resize

ConcurrentTokenizedPriorityQueueTKey, TValue, TToken(Int32, TToken, FuncTToken, TToken) Constructor

Initializes a new instance of the ConcurrentTokenizedPriorityQueueTKey, TValue, TToken class. When argument GetNextToken is not null, the priority queue is generating new tokens by itself. In this case you should only use the Enqueue functions to enqueue items. In contrast, when GetNextToken is null, the priority queue is not generating tokens by itself, and you have to use the Add functions to enqueue items.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public ConcurrentTokenizedPriorityQueue(
	int capacity,
	TToken initialToken,
	Func<TToken, TToken>? GetNextToken
)

Parameters

capacity  Int32
The inital capacity of the priority queue.
initialToken  TToken
The initial token.
GetNextToken  FuncTToken, TToken
The function to generate new tokens. Argument is the old token. The return value should be a new token that was not generated before.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException
See Also