Skip to content

Tweak doc and implementation of any_channel_closed and all_channels_closed, and add tests - #540

Merged
johanhelsing merged 2 commits into
johanhelsing:mainfrom
Craig-Macomber:closed_chan
Feb 21, 2026
Merged

Tweak doc and implementation of any_channel_closed and all_channels_closed, and add tests#540
johanhelsing merged 2 commits into
johanhelsing:mainfrom
Craig-Macomber:closed_chan

Conversation

@Craig-Macomber

@Craig-Macomber Craig-Macomber commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

Clarify docs to cover that these only apply to non-taken channels.

Simplify implementations by leveraging the fact that Option is iterable.

Add test coverage.

@johanhelsing johanhelsing left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks good. Thanks!

@Craig-Macomber

Copy link
Copy Markdown
Contributor Author

I fixed the merge conflict. Should be mergeable now.

@johanhelsing
johanhelsing merged commit 2347405 into johanhelsing:main Feb 21, 2026
10 checks passed
@Craig-Macomber
Craig-Macomber deleted the closed_chan branch March 8, 2026 04:16
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