File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
library/src/scala/collection/mutable Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ import generic._
15
15
/** This class implements priority queues using a heap.
16
16
* To prioritize elements of type A there must be an implicit
17
17
* Ordering[A] available at creation.
18
+ *
19
+ * If multiple elements have the same priority in the ordering of this
20
+ * PriorityQueue, no guarantees are made regarding the order in which elements
21
+ * are returned by `dequeue` or `dequeueAll`. In particular, that means this
22
+ * class does not guarantee first in first out behaviour that may be
23
+ * incorrectly inferred from the Queue part of the name of this class.
18
24
*
19
25
* Only the `dequeue` and `dequeueAll` methods will return elements in priority
20
26
* order (while removing elements from the heap). Standard collection methods
You can’t perform that action at this time.
0 commit comments