Click or drag to resize

ConcurrentPriorityQueueTKey, TValueTryDequeueIf(FuncTKey, TValue, Boolean, TKey, TValue) Method

Dequeues the minimum key value. Two conditions are neccessary in order to dequeue an item: i) at least one item needs to be in the queue, and ii) the predicate given in the argument, applied to the minimum key value item, must return true.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public bool TryDequeueIf(
	Func<TKey, TValue, bool> predicate,
	out TKey key,
	out TValue value
)

Parameters

predicate  FuncTKey, TValue, Boolean

[Missing <param name="predicate"/> documentation for "M:Altaxo.Collections.ConcurrentPriorityQueue`2.TryDequeueIf(System.Func{`0,`1,System.Boolean},`0@,`1@)"]

key  TKey

[Missing <param name="key"/> documentation for "M:Altaxo.Collections.ConcurrentPriorityQueue`2.TryDequeueIf(System.Func{`0,`1,System.Boolean},`0@,`1@)"]

value  TValue

[Missing <param name="value"/> documentation for "M:Altaxo.Collections.ConcurrentPriorityQueue`2.TryDequeueIf(System.Func{`0,`1,System.Boolean},`0@,`1@)"]

Return Value

Boolean
True if the item was dequeued; otherwise, false.
See Also