Repository navigation
add a sender facade that derives completions and attributes from algorithm code - #2479
Merged
Merged
Conversation
ericniebler
force-pushed
the
add-sender-facade
branch
2 times, most recently
from
November 24, 2026 00:12
aa7aefe to
9337e7c
Compare
…rithm code An algorithm written with `__facade` completes only through `__send` and starts nested work only through `__start_nested`. Its handlers return effect tokens, and the facade walks them to derive the sender's completion signatures and its completion attributes (scheduler, domain, behavior). So these can no longer disagree with what the algorithm does. The tests use algorithms written for them. The `__mfor<__mlist_ptr>` specialization lets `__mapply` take an `__mlist_ptr`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ericniebler
force-pushed
the
add-sender-facade
branch
from
November 24, 2026 00:56
9337e7c to
6cb5634
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
an algorithm written with
__facadecompletes only through__sendand starts nested work only through__start_nested. its handlers return effect tokens, and the facade walks them to derive the sender's completion signatures and its completion attributes (scheduler, domain, behavior), so these can no longer disagree with what the algorithm does. the overview at the top of__sender_facade.hppdescribes the design.this PR adds just the facade and its tests (
test/stdexec/detail/test_facade.cpp), which use small algorithms written for them. nothing in the library uses the facade yet. the library's algorithms move to it in follow-up PRs, which also bring the MAINTAINERS.md guide and the__upon::__algothat the overview mentions.🤖 Generated with Claude Code