ConcurrentPriorityQueueTKey, TValueTryDequeueIf(FuncTKey, Boolean, TKey, TValue) Method |
Dequeues the minimum key value if the predicate returns true for the minimum key. Returns true if the item was dequeued; otherwise, false.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic bool TryDequeueIf(
Func<TKey, bool> predicate,
out TKey key,
out TValue value
)
Parameters
- predicate FuncTKey, Boolean
- Predicate to test the minimum key value.
- key TKey
- The minimum key value, if found and dequeued.
- value TValue
- The value associated with the minimum key, if found and dequeued.
Return Value
BooleanTrue if the item was dequeued; otherwise, false.
See Also