Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DeleteAll function to clear the map #8

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Add DeleteAll function to clear the map #8

merged 1 commit into from
Dec 2, 2024

Conversation

jentfoo
Copy link
Member

@jentfoo jentfoo commented Dec 2, 2024

Prior to this it would be necessary to get the KeySet to iterate and invoke Delete on every key. DeleteAll provides a simpler, faster, and technically atomic way to clear the entire map.

@jentfoo jentfoo added the enhancement New feature or request label Dec 2, 2024
@jentfoo jentfoo self-assigned this Dec 2, 2024
@jentfoo jentfoo merged commit c324e6f into main Dec 2, 2024
2 checks passed
@jentfoo jentfoo deleted the jent/DeleteAll branch January 22, 2025 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant