Click or drag to resize

ConcurrentTokenizedPriorityQueueTKey, TValue, TToken(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 TryAdd(..) 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(
	TToken initialToken,
	Func<TToken, TToken> GetNextToken
)

Parameters

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.
See Also