Type of elements within source.
The source iterable.
Optionalcomparator: OrderComparator<TElement, TElement>Optional order comparator used to compare elements in the resulting queue.
A priority queue containing all elements from source.
The entire sequence is enumerated immediately. Elements are ordered according to comparator or the default ordering.
Materialises source into a priority queue.