Skip to content

Refactor stop propagation - #363

Merged
dietmarkuehl merged 2 commits into
bemanproject:mainfrom
Cra3z:propagate-stop
Dec 2, 2026
Merged

dietmarkuehl merged 2 commits into
bemanproject:mainfrom
Cra3z:propagate-stop

Conversation

@Cra3z

@Cra3z Cra3z commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

task and the scheduler receiver proxies had separate implementations for propagating stop requests. This PR consolidates them into a shared stop_propagator that forwards the original token when its type already matches and bridges it through a stop source otherwise. It also simplifies stop_when by exposing a combined token to the wrapped sender instead of maintaining a separate stop source in the operation state.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 92.532% (+0.2%) from 92.336% — Cra3z:propagate-stop into bemanproject:main

@dietmarkuehl dietmarkuehl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice!

@dietmarkuehl
dietmarkuehl merged commit 9f1278a into bemanproject:main Dec 2, 2026
44 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