Skip to content

Conversation

@Andres-Salamanca
Copy link
Member

This PR makes bulk pipeable using the | operator by using sender_adaptor_closure and sender_adaptor utilities. This allows bulk to be composed in pipelines.

@Andres-Salamanca
Copy link
Member Author

@dietmarkuehl

@coveralls
Copy link

coveralls commented Jul 28, 2025

Coverage Status

coverage: 92.43% (-0.1%) from 92.578%
when pulling 2208ca9 on Andres-Salamanca:bulk-pipe
into fa6d441 on bemanproject:main.

namespace {
auto test_bulk() {
auto b0 = test_std::bulk(test_std::just(), 1, [](int) {});
auto b0 = test_std::just() | test_std::bulk(1, [](int) {});
Copy link
Member

Choose a reason for hiding this comment

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

It seems odd to replace existing tests to cover new functionality. I’m aware that the new notation effectively calls into the original formulation and, this, implicitly tests what was previously tested. I tend to build test such that
the fundation is first tested separately.

Would it be viable to create new tests instead of modifying existing ones?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, I reused the existing tests, but now implemented them using the pipe operator.

Copy link
Member

@dietmarkuehl dietmarkuehl left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you very much!

@dietmarkuehl dietmarkuehl merged commit d82ccca into bemanproject:main Jul 29, 2025
41 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.

3 participants