Sequential ordering of ActionQueue is not guaranteed
PriorityQueue backing the
ActionQueue does not necessarily execute same priority actions in sequential order. From the javadoc on the
PriorityQeue class: "If multiple elements are tied for least value, the head is one of those elements -- ties are broken arbitrarily.".
- The queue should only be used in a context where ordering of queued actions does not matter => update documentation and check that this is the current case.
- the queue should be updated to facilitate a FIFO behavior for same priority actions, e.g. introduce a sequence number.