Skip to content

update canceller#117

Merged
wokron merged 1 commit into
masterfrom
update-canceller
May 18, 2026
Merged

update canceller#117
wokron merged 1 commit into
masterfrom
update-canceller

Conversation

@wokron
Copy link
Copy Markdown
Member

@wokron wokron commented May 18, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors the canceller interface used by ParallelOperationState and RangedParallelOperationState: the two-method API (maybe_request_stop / maybe_reset) is collapsed into a templated operator()(const R&) plus reset(). This sets up a more flexible canceller that can inspect the per-child result (useful for future predicate-based cancellation), while keeping current WhenAny/WhenAll semantics unchanged.

Changes:

  • Replace maybe_request_stop() with template <typename R> operator()(const R&) on both WhenAnyCanceller and WhenAllCanceller.
  • Rename maybe_reset() to reset().
  • Update call sites in ParallelOperationState::receive_ and RangedParallelOperationState::receive_ accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wokron wokron marked this pull request as ready for review May 18, 2026 11:44
@wokron wokron merged commit f98f6b3 into master May 18, 2026
17 checks passed
@wokron wokron deleted the update-canceller branch May 18, 2026 11:44
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