PriorityQueue<TElement, TPriority>.TryDequeue Method
Namespace: Riptide.Utils
Assembly: RiptideNetworking.dll
TryDequeue(out TElement, out TPriority)
Removes the lowest priority element from the PriorityQueue<TElement, TPriority> and copies it and its associated priority to the element
and priority
arguments.
public bool TryDequeue(out TElement element, out TPriority priority)
Parameters
TElement | element |
When this method returns, contains the removed element. |
TPriority | priority |
When this method returns, contains the priority associated with the removed element. |
Returns
bool | true if the element is successfully removed; false if the PriorityQueue<TElement, TPriority> is empty. |