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

feat: add is_empty and len methods to MergeUnbounded #8

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

Frando
Copy link
Contributor

@Frando Frando commented Aug 29, 2024

Adds MergeUnbounded::is_empty and MergeUnbounded::len.
The former is quite useful when using in a tokio::select! loop to disable the branch if the stream set is empty.

@Frando Frando changed the title feat: add MergeUnbounded::is_empty and MergeUnbounded::len feat: add is_empty and len methods to MergeUnbounded Aug 29, 2024
Copy link
Owner

@conradludgate conradludgate left a comment

Choose a reason for hiding this comment

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

Thanks :)

@conradludgate conradludgate merged commit fd84036 into conradludgate:main Aug 30, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants