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 len() to Stealer #708

Merged
merged 1 commit into from May 31, 2021
Merged

add len() to Stealer #708

merged 1 commit into from May 31, 2021

Conversation

dinfuehr
Copy link
Contributor

@dinfuehr dinfuehr commented May 30, 2021

Stealer only has the method is_empty() at the moment, but it would also be useful to check the size of the deque to e.g. steal from the longest deque.

Closes #572

Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

bors r+

@bors
Copy link
Contributor

bors bot commented May 31, 2021

Build succeeded:

@bors bors bot merged commit 1f3104e into crossbeam-rs:master May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Expose length in dequeue Stealer
2 participants