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

Draining iterator #78

Open
jplatte opened this issue Mar 1, 2023 · 1 comment
Open

Draining iterator #78

jplatte opened this issue Mar 1, 2023 · 1 comment

Comments

@jplatte
Copy link

jplatte commented Mar 1, 2023

I'm not very knowledgeable about lock-free data structures; would it be possible to provide a draining iterator that yields all items that exist at the time it is constructed?

@hawkw
Copy link
Owner

hawkw commented Sep 27, 2023

It would require exclusive mutable access to the slab, similar to the existing Slab::unique_iter method. But, we could potentially provide something like that.

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

No branches or pull requests

2 participants