chore(protocol): replace EventTarget interface with Metadata.wait#40699
chore(protocol): replace EventTarget interface with Metadata.wait#40699dgozman wants to merge 1 commit intomicrosoft:mainfrom
Conversation
EventTarget existed only to declare waitForEventInfo for the channels that extended it. The dispatcher already special-cased that method, so move the wait info into Metadata, drop the EventTarget interface, and route waits through a dedicated fire-and-forget Connection.sendWaitMessage / dispatcher _handleWait path.
Test results for "MCP"12 failed 6471 passed, 969 skipped Merge workflow run. |
Test results for "tests 1"23 failed 2 flaky41630 passed, 851 skipped Merge workflow run. |
Summary
EventTargetprotocol interface; its only command,waitForEventInfo, was already special-cased by the dispatcher.Metadata.waitinstead, and route waits through a fire-and-forgetConnection.sendWaitMessage/ dispatcher_handleWaitpath.