Click or drag to resize

ConcurrentTokenizedPriorityQueueTKey, TValue, TTokenTryDecreaseKey Method

Tries to change the key associated with the provided token. The new key value has to be less than the existing one; otherwise an exception is thrown.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public bool TryDecreaseKey(
	TToken token,
	TKey key
)

Parameters

token  TToken
The token associated with the key.
key  TKey
The new key.

Return Value

Boolean
True if the item associated with the token still existed in the queue; otherwise false.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe new key was equal to or greater than the existing one.
See Also