Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

order worker states for API #17

Merged
merged 2 commits into from
Jun 13, 2023
Merged

order worker states for API #17

merged 2 commits into from
Jun 13, 2023

Conversation

Fabio1988
Copy link
Collaborator

When iterating over a map with a range loop, the iteration order is not specified and is not guaranteed to be the same from one iteration to the next. Since Go 1 the runtime randomizes map iteration order, as programmers relied on the stable iteration order of the previous implementation. If you require a stable iteration order you must maintain a separate data structure that specifies that order

@Fabio1988 Fabio1988 merged commit 2a74d88 into main Jun 13, 2023
@Fabio1988 Fabio1988 deleted the order_worker_states branch June 13, 2023 18:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant