PriorityQueueTTryDequeue(Int32, T) Method

Dequeues an item from the priority queue.

Definition

Namespace: Gemstone.Threading.Collections
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.128 -- Release Build+d4a9a653be1def5888b9be91bb1825c8655f3529
public bool TryDequeue(
	int priority,
	out T? result
)

Parameters

priority  Int32
The priority at which the item should be dequeued.
result  T
The item that was dequeued, or the default value if no item was dequeued.

Return Value

Boolean
True if an item was dequeued; false if the queue is empty.

See Also