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

notify_iter docs state expired elements are removed before creating iterator #133

Open
That3Percent opened this issue Jun 24, 2020 · 0 comments
Labels

Comments

@That3Percent
Copy link

Describe the bug
notify_iter docs state: "Also removes expired elements before creating the iterator.", which appears to have been copy-pasted from the docs of fn iter.

This conflicts with the implementation, which removes elements as they are encountered during iteration.

I expect that it is the docs that are incorrect and not the implementation.

This created an issue for a project I work on where the cache grew without bound, because it was relying on that call to expire entries from the cache without iterating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant