Skip to content

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

@That3Percent

Description

@That3Percent

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions