Repository navigation
Conversation
Cra3z
marked this pull request as draft
November 27, 2026 09:49
Adaptors that change which channel a completion arrives on forwarded the child's completion scheduler and domain unchanged, so e.g. `upon_error` reported the child's value scheduler for a value completion that actually comes from the child's error completion. Add `remap_attrs`, which answers `get_completion_scheduler<Tag>` and `get_completion_domain<Tag>` from the child completions that can produce `Tag`: - the domain is the common domain of all sources; - the scheduler is reported only if all sources share one origin; - a tag without sources has no domain. Use it for `then`/`upon_error`/`upon_stopped`, `bulk*`, `into_variant`, `stopped_as_optional`, `stopped_as_error`, `stop_when` and the parallel scheduler's bulk sender. Also fix `common_type` of `indeterminate_domain<>` with a bare domain to yield that domain, per [exec.domain.indeterminate]/4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cra3z
force-pushed
the
fix-sender-attrs
branch
from
November 27, 2026 12:09
0838d76 to
37c6da8
Compare
Cra3z
marked this pull request as ready for review
November 27, 2026 12:14
Cra3z
marked this pull request as draft
November 27, 2026 15:32
This branch has not been deployed
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.
In the current implementation, the following program cannot be compiled:
ex::run_loop loop; ex::prop env{ ex::get_start_scheduler, loop.get_scheduler() }; auto sndr1 = ex::just_stopped() | ex::stopped_as_error(-1); auto sch1 = ex::get_completion_scheduler<ex::set_error_t>(ex::get_env(sndr1), env); assert(sch1 == loop.get_scheduler()); auto sndr2 = ex::just_error(-1) | ex::upon_error([](int i) noexcept { return i; }); auto sch2 = ex::get_completion_scheduler<ex::set_value_t>(ex::get_env(sndr2), env); assert(sch2 == loop.get_scheduler());Adaptors that change which channel a completion arrives on forwarded the child's completion scheduler and domain unchanged, so e.g.
upon_errorreported the child's value scheduler for a value completion that actually comes from the child's error completion.Add
remap_attrs, which answersget_completion_scheduler<Tag>andget_completion_domain<Tag>from the child completions that can produceTag:Use it for
then/upon_error/upon_stopped,bulk*,into_variant,stopped_as_optional,stopped_as_errorand the parallel scheduler's bulk sender.Also fix
common_typeofindeterminate_domain<>with a bare domain to yield that domain, per[exec.domain.indeterminate]/4.This PR was developed with the assistance of Claude Opus 5.5. All code has been reviewed by me.