Skip to content

fix: OnTimeoutElapsed crashes / refactor to use upstream version (fix… - #1925

Open
linkdotnet wants to merge 1 commit into
mainfrom
fix/#1920
Open

fix: OnTimeoutElapsed crashes / refactor to use upstream version (fix…#1925
linkdotnet wants to merge 1 commit into
mainfrom
fix/#1920

Conversation

@linkdotnet

@linkdotnet linkdotnet commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Copilot AI lite review requested due to automatic review settings September 11, 2026 20:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

A critical timer disposal race can cause ObjectDisposedException during invocation handling.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Refactors JSInterop timeout handling and adds regression coverage for timeout/result races.

Changes:

  • Tracks pending invocations independently.
  • Adds timeout and concurrency tests.
  • Documents the fix in the changelog.
File summaries
File Description
tests/bunit.tests/JSInterop/BunitJSInteropTimeoutTest.cs Adds timeout and race-condition tests.
src/bunit/JSInterop/InvocationHandlers/JSRuntimeInvocationHandlerBase{TResult}.cs Refactors invocation and timeout handling.
CHANGELOG.md Records the timeout crash fix.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

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