Skip to content

Refactor event stream cancellation waits - #41696

Merged
beena352 merged 2 commits into
microsoft:masterfrom
beena352:users/beenachauhan/event-stream-wait-cleanup
Sep 28, 2026
Merged

beena352 merged 2 commits into
microsoft:masterfrom
beena352:users/beenachauhan/event-stream-wait-cleanup

Conversation

@beena352

Copy link
Copy Markdown
Contributor

Summary of the Pull Request

Follow-up to combine event-stream cancellation and caller-exit handle checks.

PR Checklist

  • Closes: Link to issue #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Uses WaitForMultipleObjects() to check the optional cancellation and caller-process handles together. Adds event-stream cancellation coverage.

Validation Steps Performed

Copilot AI lite review requested due to automatic review settings September 24, 2026 18:17
@beena352
beena352 requested review from a team as code owners September 24, 2026 18:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Add coverage for caller-process exit while blocked and simultaneous handle signaling.

Review effort: Lite
Findings: None

What changed in this PR

Refactors event-stream waits to monitor cancellation and caller-process handles together.

Changes:

  • Uses WaitForMultipleObjects for unified waiting.
  • Updates the EventStore wait API and documentation.
  • Adds expanded cancellation and event-stream tests.
File Summary
test/​windows/​WSLCTests.cpp Adds event-stream cancellation scenarios.
src/​windows/​wslcsession/​EventStore.h Updates the wait API and documentation.
src/​windows/​wslcsession/​EventStore.cpp Implements combined handle waiting; caller-exit interaction still needs test coverage.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/windows/WSLCTests.cpp Outdated
Comment thread test/windows/WSLCTests.cpp
Copilot AI review requested due to automatic review settings September 25, 2026 20:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The concurrency and cancellation-wait changes warrant final human review.

Review effort: Lite
Findings: None

@beena352
beena352 merged commit 0895f20 into microsoft:master Sep 28, 2026
9 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