This repository was archived by the owner on May 20, 2025. It is now read-only.

Description
Bug description
OrderedMap.ForEach can result in a situation, where the iteration order is somewhat undefined while we are iterating if the elements get mutated during the iteration
Expected behaviour
Calling ForEach should give us the elements that are in the map by the time ForEach is called (make a copy).
Actual behaviour
Calling ForEach locks only each iterated entry, which means that if the order changes in between, we might miss or skip some entries.